From: Raphaƫl Gertz Date: Tue, 27 Feb 2024 12:06:36 +0000 (+0100) Subject: Add user cache in framework cache pools X-Git-Tag: 0.4.0~38 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/052d1f652e5a2e6547bcedd8b2d982448c872971?ds=inline Add user cache in framework cache pools Add cache and form factory --- diff --git a/Resources/config/packages/rapsys_user.yaml b/Resources/config/packages/rapsys_user.yaml index 5e91556..4bfea90 100644 --- a/Resources/config/packages/rapsys_user.yaml +++ b/Resources/config/packages/rapsys_user.yaml @@ -1,3 +1,9 @@ +#Framework configuration +framework: + cache: + pools: + user.cache: + adapter: 'cache.adapter.system' #Service configuration services: #Register security context service @@ -7,7 +13,7 @@ services: arguments: [ [ '@security.access.role_hierarchy_voter' ] ] #Register default controller Rapsys\UserBundle\Controller\UserController: - arguments: [ '@security.authorization_checker', '@service_container', '@doctrine', '@security.user_password_hasher', '@logger', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@router', '@security.helper', '@rapsys_pack.slugger_util', '@request_stack', '@translator', '@twig' ] + 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', '@rapsys_pack.slugger_util', '@request_stack', '@translator', '@twig' ] tags: [ 'controller.service_arguments' ] #Register default repository factory Rapsys\UserBundle\Factory\RepositoryFactory: