1 # Parameters configuration
4 # RapsysTree configuration
7 address: 'veranda@rapsys.eu'
13 locales: [ 'fr_fr', 'en_gb' ]
15 alt: 'Rapsys photo''s logo'
18 # RapsysUser configuration
22 group: 'Rapsys\TreeBundle\Entity\Group'
23 civility: 'Rapsys\TreeBundle\Entity\Civility'
24 user: 'Rapsys\TreeBundle\Entity\User'
27 address: '%rapsystree.contact.address%'
28 name: '%rapsystree.contact.name%'
34 languages: '%rapsystree.languages%'
37 site: '%rapsystree.title%'
44 # Doctrine configuration
49 default_table_options:
51 collate: 'utf8mb4_unicode_ci'
54 # Replace repository factory
55 repository_factory: 'Rapsys\TreeBundle\Factory'
57 #Resolve UserBundle entities with TreeBundle one
58 #XXX: without these lines, relations are lookup in parent namespace ignoring TreeBundle extension
59 resolve_target_entities:
60 Rapsys\UserBundle\Entity\Group: 'Rapsys\TreeBundle\Entity\Group'
61 Rapsys\UserBundle\Entity\Civility: 'Rapsys\TreeBundle\Entity\Civility'
62 Rapsys\UserBundle\Entity\User: 'Rapsys\TreeBundle\Entity\User'
64 # Security configuration
68 # Disables authentication for assets and the profiler, adapt it according to your needs
70 pattern: '^/(_(profiler|wdt)|css|images|js)/'
75 # Allow anonymous access
79 # Activate database provider
80 #XXX: comment this key in config/security.yaml to prevent users_in_memory induced failures
83 # Activate user checker
84 user_checker: 'security.user_checker'
86 #XXX: https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
90 #XXX: https://symfony.com/doc/current/security/form_login_setup.html
91 #TODO: https://symfony.com/doc/current/security/guard_authentication.html
93 # Redirect to referer if different from login route
96 login_path: 'rapsysuser_login'
98 check_path: 'rapsysuser_login'
100 username_parameter: 'login[mail]'
102 password_parameter: 'login[password]'
103 # Enable login csrf protection
106 csrf_parameter: 'login[_token]'
108 csrf_token_id: 'login'
113 path: 'rapsysuser_logout'
114 # Logout default target
117 # Set custom access denied handler
118 #access_denied_handler: Rapsys\BlogBundle\Handler\AccessDeniedHandler
121 #XXX: see https://symfony.com/doc/current/security/remember_me.html
124 secret: '%kernel.secret%'
126 always_remember_me: true
128 # Set password hashers
130 #XXX: comment this key in config/security.yaml to prevent users_in_memory induced failures
131 #TODO: see https://symfony.com/doc/current/security/passwords.html (sodium ? + upgrade)
132 Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
133 #Rapsys\TreeBundle\Entity\User:
143 class: 'Rapsys\TreeBundle\Entity\User'
148 ROLE_USER: [ 'ROLE_GUEST' ]
149 ROLE_ADMIN: [ 'ROLE_GUEST', 'ROLE_USER' ]
151 # Services configuration
153 # Register tree controller
154 Rapsys\TreeBundle\Controller\TreeController:
155 arguments: [ '@service_container', '@router', '@request_stack', '@translator', '@twig' ]
156 tags: [ 'controller.service_arguments' ]
157 # Register tree repository factory
158 Rapsys\TreeBundle\Factory:
159 arguments: [ '@service_container', '@request_stack', '@router', '@rapsyspack.slugger_util', '@translator', '%rapsystree.locale%', '%rapsystree.languages%' ]
160 #Register blog fixture
161 Rapsys\TreeBundle\Fixture\TreeFixture:
162 arguments: [ '@service_container', '@rapsyspack.slugger_util' ]
163 tags: [ 'doctrine.fixture.orm' ]
169 debug: '%kernel.debug%'
170 #strict_variables: '%kernel.debug%'
173 # XXX: enable forced regeneration of css and js at each page load
176 # Fix form layout for css
177 # XXX: @RapsysTree is a shortcut to vendor/rapsys/treebundle/Resources/views directory here
178 #form_theme: [ '@RapsysTree/form/form_div_layout.html.twig' ]
182 # Required by email.image(site_logo) directive
183 # XXX: Allow twig to resolve @RapsysTree/png/logo.png in vendor/rapsys/treebundle/public/png/logo.png
184 '%kernel.project_dir%/vendor/rapsys/treebundle/public': 'RapsysTree'
185 #'%kernel.project_dir%/vendor/rapsys/userbundle/public': 'RapsysUser'
186 # Override default exception controller
187 #exception_controller: Rapsys\TreeBundle\Controller\ErrorController::preview