]> Raphaƫl G. Git Repositories - userbundle/blob - config/packages/rapsysuser.yaml
Add short syntax note
[userbundle] / config / packages / rapsysuser.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 # Set user cache pool with system adapter
15 adapter: 'cache.adapter.system'
16
17 #Service configuration
18 services:
19 #Register security context service
20 rapsysuser.access_decision_manager:
21 class: 'Symfony\Component\Security\Core\Authorization\AccessDecisionManager'
22 public: true
23 arguments: [ [ '@security.access.role_hierarchy_voter' ] ]
24 #Register default controller
25 Rapsys\UserBundle\Controller\UserController:
26 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' ]
27 tags: [ 'controller.service_arguments' ]
28 #Register repository factory
29 Rapsys\UserBundle\Factory:
30 arguments: [ '@service_container', '@request_stack', '@router', '@rapsyspack.slugger_util', '@translator', '%kernel.default_locale%' ]
31 # Register user fixture
32 Rapsys\UserBundle\Fixture\UserFixture:
33 arguments: [ '@service_container', '@security.user_password_hasher' ]
34 tags: [ 'doctrine.fixture.orm' ]
35 #Register Authentication success handler
36 security.authentication.success_handler:
37 class: 'Rapsys\UserBundle\Handler\AuthenticationSuccessHandler'
38 arguments: [ '@router', {} ]
39 #Register Authentication failure handler
40 security.authentication.failure_handler:
41 class: 'Rapsys\UserBundle\Handler\AuthenticationFailureHandler'
42 arguments: [ '@http_kernel', '@security.http_utils', {}, '@logger', '@service_container', '@doctrine', '@mailer.mailer', '@router', '@rapsyspack.slugger_util', '@request_stack', '@translator' ]
43 #Register default logout listener
44 security.logout.listener.default:
45 class: 'Rapsys\UserBundle\Listener\LogoutListener'
46 arguments: [ '@service_container', '/', '@router' ]
47 #Register security user checker
48 security.user_checker:
49 class: 'Rapsys\UserBundle\Checker\UserChecker'