3 #Register security context service
4 rapsys_user.access_decision_manager:
5 class: 'Symfony\Component\Security\Core\Authorization\AccessDecisionManager'
7 arguments: [ [ '@security.access.role_hierarchy_voter' ] ]
8 #Register default controller
9 Rapsys\UserBundle\Controller\DefaultController:
10 arguments: [ '@service_container', '@router', '@translator' ]
12 tags: [ 'controller.service_arguments' ]
13 #Register Authentication success handler
14 security.authentication.success_handler:
15 class: 'Rapsys\UserBundle\Handler\AuthenticationSuccessHandler'
16 arguments: [ '@router', {} ]
17 #Register Authentication failure handler
18 security.authentication.failure_handler:
19 class: 'Rapsys\UserBundle\Handler\AuthenticationFailureHandler'
20 arguments: [ '@http_kernel', '@security.http_utils', {}, '@logger', '@service_container', '@router', '@rapsys_pack.slugger_util']
21 #Register logout success handler
22 security.logout.success_handler:
23 class: 'Rapsys\UserBundle\Handler\LogoutSuccessHandler'
24 arguments: [ '@service_container', '/', '@router' ]
25 #Register security user checker
26 security.user_checker:
27 class: 'Rapsys\UserBundle\Checker\UserChecker'