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