]> Raphaƫl G. Git Repositories - userbundle/blob - Resources/config/packages/rapsys_user.yaml
4bfea90abfa611db4ec437b7e42f4f1e32c7cc7d
[userbundle] / Resources / config / packages / rapsys_user.yaml
1 #Framework configuration
2 framework:
3 cache:
4 pools:
5 user.cache:
6 adapter: 'cache.adapter.system'
7 #Service configuration
8 services:
9 #Register security context service
10 rapsys_user.access_decision_manager:
11 class: 'Symfony\Component\Security\Core\Authorization\AccessDecisionManager'
12 public: true
13 arguments: [ [ '@security.access.role_hierarchy_voter' ] ]
14 #Register default controller
15 Rapsys\UserBundle\Controller\UserController:
16 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', '@rapsys_pack.slugger_util', '@request_stack', '@translator', '@twig' ]
17 tags: [ 'controller.service_arguments' ]
18 #Register default repository factory
19 Rapsys\UserBundle\Factory\RepositoryFactory:
20 arguments: [ '@request_stack', '@router', '@rapsys_pack.slugger_util', '@translator', '%rapsys_user.languages%', '%rapsys_user.locale%' ]
21 #Register Authentication success handler
22 security.authentication.success_handler:
23 class: 'Rapsys\UserBundle\Handler\AuthenticationSuccessHandler'
24 arguments: [ '@router', {} ]
25 #Register Authentication failure handler
26 security.authentication.failure_handler:
27 class: 'Rapsys\UserBundle\Handler\AuthenticationFailureHandler'
28 arguments: [ '@http_kernel', '@security.http_utils', {}, '@logger', '@service_container', '@doctrine', '@mailer.mailer', '@router', '@rapsys_pack.slugger_util', '@request_stack', '@translator' ]
29 #Register default logout listener
30 security.logout.listener.default:
31 class: 'Rapsys\UserBundle\Listener\LogoutListener'
32 arguments: [ '@service_container', '/', '@router' ]
33 #Register security user checker
34 security.user_checker:
35 class: 'Rapsys\UserBundle\Checker\UserChecker'