From 052d1f652e5a2e6547bcedd8b2d982448c872971 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 27 Feb 2024 13:06:36 +0100 Subject: [PATCH] Add user cache in framework cache pools Add cache and form factory --- Resources/config/packages/rapsys_user.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: -- 2.41.1