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