1 #XXX: needs to be commented out when using an other one with extra keys
2 ##Doctrine configuration
6 # #Replace repository factory
7 # repository_factory: 'Rapsys\UserBundle\Factory'
9 #Framework configuration
14 adapter: 'cache.adapter.system'
16 #Service configuration
18 #Register security context service
19 rapsys_user.access_decision_manager:
20 class: 'Symfony\Component\Security\Core\Authorization\AccessDecisionManager'
22 arguments: [ [ '@security.access.role_hierarchy_voter' ] ]
23 #Register default controller
24 Rapsys\UserBundle\Controller\UserController:
25 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' ]
26 tags: [ 'controller.service_arguments' ]
27 Rapsys\UserBundle\Factory:
28 arguments: [ '@request_stack', '@router', '@rapsyspack.slugger_util', '@translator', '%kernel.default_locale%' ]
29 #Register Authentication success handler
30 security.authentication.success_handler:
31 class: 'Rapsys\UserBundle\Handler\AuthenticationSuccessHandler'
32 arguments: [ '@router', {} ]
33 #Register Authentication failure handler
34 security.authentication.failure_handler:
35 class: 'Rapsys\UserBundle\Handler\AuthenticationFailureHandler'
36 arguments: [ '@http_kernel', '@security.http_utils', {}, '@logger', '@service_container', '@doctrine', '@mailer.mailer', '@router', '@rapsyspack.slugger_util', '@request_stack', '@translator' ]
37 #Register default logout listener
38 security.logout.listener.default:
39 class: 'Rapsys\UserBundle\Listener\LogoutListener'
40 arguments: [ '@service_container', '/', '@router' ]
41 #Register security user checker
42 security.user_checker:
43 class: 'Rapsys\UserBundle\Checker\UserChecker'