1 # Parameters configuration
4 # RapsysTree configuration
7 address: 'veranda@rapsys.eu'
13 locales: [ 'fr_fr', 'en_gb' ]
15 alt: 'Rapsys photo''s logo'
20 Photo: '/var/www/photo'
21 Tango: '/var/www/tango'
22 Video: '/var/www/video'
24 # RapsysUser configuration
28 group: 'Rapsys\TreeBundle\Entity\Group'
29 civility: 'Rapsys\TreeBundle\Entity\Civility'
30 user: 'Rapsys\TreeBundle\Entity\User'
36 languages: '%rapsystree.languages%'
39 site: '%rapsystree.title%'
46 # Doctrine configuration
51 default_table_options:
53 collate: 'utf8mb4_unicode_ci'
56 # Replace repository factory
57 repository_factory: 'Rapsys\TreeBundle\Factory'
59 #Resolve UserBundle entities with TreeBundle one
60 #XXX: without these lines, relations are lookup in parent namespace ignoring TreeBundle extension
61 resolve_target_entities:
62 Rapsys\UserBundle\Entity\Group: 'Rapsys\TreeBundle\Entity\Group'
63 Rapsys\UserBundle\Entity\Civility: 'Rapsys\TreeBundle\Entity\Civility'
64 Rapsys\UserBundle\Entity\User: 'Rapsys\TreeBundle\Entity\User'
66 # Security configuration
70 # Disables authentication for assets and the profiler, adapt it according to your needs
72 pattern: '^/(_(profiler|wdt)|css|images|js)/'
77 # Allow anonymous access
81 # Activate database provider
82 #XXX: comment this key in config/security.yaml to prevent users_in_memory induced failures
85 # Activate user checker
86 user_checker: 'security.user_checker'
88 #XXX: https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
92 #XXX: https://symfony.com/doc/current/security/form_login_setup.html
93 #TODO: https://symfony.com/doc/current/security/guard_authentication.html
95 # Redirect to referer if different from login route
98 login_path: 'rapsysuser_login'
100 check_path: 'rapsysuser_login'
102 username_parameter: 'login[mail]'
104 password_parameter: 'login[password]'
105 # Enable login csrf protection
108 csrf_parameter: 'login[_token]'
110 csrf_token_id: 'login'
115 path: 'rapsysuser_logout'
116 # Logout default target
119 # Set custom access denied handler
120 #access_denied_handler: Rapsys\BlogBundle\Handler\AccessDeniedHandler
123 #XXX: see https://symfony.com/doc/current/security/remember_me.html
126 secret: '%kernel.secret%'
128 always_remember_me: true
130 # Set password hashers
132 #XXX: comment this key in config/security.yaml to prevent users_in_memory induced failures
133 #TODO: see https://symfony.com/doc/current/security/passwords.html (sodium ? + upgrade)
134 Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
135 #Rapsys\TreeBundle\Entity\User:
145 class: 'Rapsys\TreeBundle\Entity\User'
150 ROLE_USER: [ 'ROLE_GUEST' ]
151 ROLE_ADMIN: [ 'ROLE_GUEST', 'ROLE_USER' ]
153 # Services configuration
155 # Register tree controller
156 Rapsys\TreeBundle\Controller\TreeController:
157 arguments: [ '@service_container', '@router', '@request_stack', '@translator', '@twig' ]
158 tags: [ 'controller.service_arguments' ]
159 # Register tree repository factory
160 Rapsys\TreeBundle\Factory:
161 arguments: [ '@service_container', '@request_stack', '@router', '@rapsyspack.slugger_util', '@translator', '%rapsystree.locale%', '%rapsystree.languages%' ]
162 #Register blog fixture
163 Rapsys\TreeBundle\Fixture\TreeFixture:
164 arguments: [ '@service_container' ]
165 tags: [ 'doctrine.fixture.orm' ]
171 debug: '%kernel.debug%'
172 #strict_variables: '%kernel.debug%'
175 # XXX: enable forced regeneration of css and js at each page load
178 # Fix form layout for css
179 # XXX: @RapsysTree is a shortcut to vendor/rapsys/treebundle/Resources/views directory here
180 #form_theme: [ '@RapsysTree/form/form_div_layout.html.twig' ]
184 # Required by email.image(site_logo) directive
185 # XXX: Allow twig to resolve @RapsysTree/png/logo.png in vendor/rapsys/treebundle/public/png/logo.png
186 '%kernel.project_dir%/vendor/rapsys/treebundle/public': 'RapsysTree'
187 #'%kernel.project_dir%/vendor/rapsys/userbundle/public': 'RapsysUser'
188 # Override default exception controller
189 #exception_controller: Rapsys\TreeBundle\Controller\ErrorController::preview