From: Raphaƫl Gertz Date: Thu, 31 Oct 2024 05:41:47 +0000 (+0100) Subject: Add user fixture X-Git-Tag: 0.5.1~11 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/3ee00bc07d02f73282303a343220917936c58421 Add user fixture Pass service container to repository factory Cleanup --- diff --git a/config/packages/rapsysuser.yaml b/config/packages/rapsysuser.yaml index 772e429..a58cb82 100644 --- a/config/packages/rapsysuser.yaml +++ b/config/packages/rapsysuser.yaml @@ -11,6 +11,7 @@ framework: cache: pools: user.cache: + # Set user cache pool with system adapter adapter: 'cache.adapter.system' #Service configuration @@ -24,8 +25,13 @@ services: Rapsys\UserBundle\Controller\UserController: arguments: [ '@user.cache', '@security.authorization_checker', '@service_container', '@doctrine', '@form.factory', '@security.user_password_hasher', '@logger', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@router', '@security.helper', '@rapsyspack.slugger_util', '@request_stack', '@translator', '@twig' ] tags: [ 'controller.service_arguments' ] + #Register repository factory Rapsys\UserBundle\Factory: - arguments: [ '@request_stack', '@router', '@rapsyspack.slugger_util', '@translator', '%kernel.default_locale%' ] + arguments: [ '@service_container', '@request_stack', '@router', '@rapsyspack.slugger_util', '@translator', '%kernel.default_locale%' ] + # Register user fixture + Rapsys\UserBundle\Fixture\UserFixture: + arguments: [ '@service_container', '@security.user_password_hasher' ] + tags: [ 'doctrine.fixture.orm' ] #Register Authentication success handler security.authentication.success_handler: class: 'Rapsys\UserBundle\Handler\AuthenticationSuccessHandler'