]> Raphaƫl G. Git Repositories - userbundle/blob - Resources/config/packages/rapsys_user.yaml
30ade11c155566adee703dfd2f1dccdc822f1be4
[userbundle] / Resources / config / packages / rapsys_user.yaml
1 #Service configuration
2 services:
3 #Register security context service
4 rapsys_user.access_decision_manager:
5 class: 'Symfony\Component\Security\Core\Authorization\AccessDecisionManager'
6 public: true
7 arguments: [ [ '@security.access.role_hierarchy_voter' ] ]
8 #Register default controller
9 Rapsys\UserBundle\Controller\DefaultController:
10 arguments: [ '@service_container', '@router', '@translator' ]
11 autowire: true
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 logout success handler
18 security.logout.success_handler:
19 class: 'Rapsys\UserBundle\Handler\LogoutSuccessHandler'
20 #XXX: second argument will be replaced there by kernel.mail.logout.target
21 #XXX: vendor/symfony/security-bundle/DependencyInjection/SecurityExtension.php +360
22 arguments: [ '@service_container', '/', '@router' ]