]> Raphaƫl G. Git Repositories - userbundle/blob - Resources/config/packages/rapsys_user.yaml
Use register inherited forms
[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\UserController:
10 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' ]
11 tags: [ 'controller.service_arguments' ]
12 #Register default repository factory
13 Rapsys\UserBundle\Factory\RepositoryFactory:
14 arguments: [ '@request_stack', '@router', '@rapsys_pack.slugger_util', '@translator', '%rapsys_user.languages%', '%rapsys_user.locale%' ]
15 #Register Authentication success handler
16 security.authentication.success_handler:
17 class: 'Rapsys\UserBundle\Handler\AuthenticationSuccessHandler'
18 arguments: [ '@router', {} ]
19 #Register Authentication failure handler
20 security.authentication.failure_handler:
21 class: 'Rapsys\UserBundle\Handler\AuthenticationFailureHandler'
22 arguments: [ '@http_kernel', '@security.http_utils', {}, '@logger', '@service_container', '@doctrine', '@mailer.mailer', '@router', '@rapsys_pack.slugger_util', '@request_stack', '@translator' ]
23 #Register default logout listener
24 security.logout.listener.default:
25 class: 'Rapsys\UserBundle\Listener\LogoutListener'
26 arguments: [ '@service_container', '/', '@router' ]
27 #Register security user checker
28 security.user_checker:
29 class: 'Rapsys\UserBundle\Checker\UserChecker'