]> Raphaƫl G. Git Repositories - userbundle/blob - Resources/config/packages/rapsys_user.yaml
f15df6c725792561e5ef375a6fd9eb44273409f8
[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', '@doctrine', '@security.user_password_hasher', '@logger', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@router', '@rapsys_pack.slugger_util', '@request_stack', '@translator', '@twig' ]
11 tags: [ 'controller.service_arguments' ]
12 #Register Authentication success handler
13 security.authentication.success_handler:
14 class: 'Rapsys\UserBundle\Handler\AuthenticationSuccessHandler'
15 arguments: [ '@router', {} ]
16 #Register Authentication failure handler
17 security.authentication.failure_handler:
18 class: 'Rapsys\UserBundle\Handler\AuthenticationFailureHandler'
19 arguments: [ '@http_kernel', '@security.http_utils', {}, '@logger', '@service_container', '@doctrine', '@router', '@rapsys_pack.slugger_util', '@security.csrf.token_manager' ]
20 #Register default logout listener
21 security.logout.listener.default:
22 class: 'Rapsys\UserBundle\Listener\LogoutListener'
23 arguments: [ '@service_container', '/', '@router' ]
24 #Register security user checker
25 security.user_checker:
26 class: 'Rapsys\UserBundle\Checker\UserChecker'