]> Raphaƫl G. Git Repositories - treebundle/blob - Resources/config/packages/rapsystree.yaml
c28325028e4e1e956f85bbde6db58a5f3c50e8e2
[treebundle] / Resources / config / packages / rapsystree.yaml
1 # Parameters configuration
2 parameters:
3
4 # RapsysTree configuration
5 rapsystree:
6 contact:
7 address: 'veranda@rapsys.eu'
8 name: 'Rapsys Photo'
9 languages:
10 en_gb: 'English'
11 fr_fr: 'French'
12 locale: 'fr_fr'
13 locales: [ 'fr_fr', 'en_gb' ]
14 logo:
15 alt: 'Rapsys photo''s logo'
16 title: 'Rapsys Photo'
17 roots:
18 Dcim: '/var/www/dcim'
19 Doc: '/var/www/doc'
20 Photo: '/var/www/photo'
21 Tango: '/var/www/tango'
22 Video: '/var/www/video'
23
24 # Security configuration
25 security:
26 # Set firewall
27 firewalls:
28 # Disables authentication for assets and the profiler, adapt it according to your needs
29 dev:
30 pattern: '^/(_(profiler|wdt)|css|images|js)/'
31 security: false
32
33 # Mail firewall
34 main:
35 # Allow anonymous access
36 #anonymous: ~
37 #lazy: true
38
39 # Activate database provider
40 #XXX: comment this key in config/security.yaml to prevent users_in_memory induced failures
41 provider: 'database'
42
43 # Activate user checker
44 user_checker: 'security.user_checker'
45
46 #XXX: https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
47 #http_basic: ~
48
49 # Set form login
50 #XXX: https://symfony.com/doc/current/security/form_login_setup.html
51 #TODO: https://symfony.com/doc/current/security/guard_authentication.html
52 form_login:
53 # Redirect to referer if different from login route
54 use_referer: true
55 # Login path
56 login_path: 'rapsysuser_login'
57 # Check path
58 check_path: 'rapsysuser_login'
59 # Username parameter
60 username_parameter: 'login[mail]'
61 # Password parameter
62 password_parameter: 'login[password]'
63 # Enable login csrf protection
64 enable_csrf: false
65 # Csrf parameter
66 csrf_parameter: 'login[_token]'
67 # Csrf id
68 csrf_token_id: 'login'
69
70 # Set logout route
71 logout:
72 # Logout route
73 path: 'rapsysuser_logout'
74 # Logout default target
75 target: 'rapsystree'
76
77 # Set custom access denied handler
78 #access_denied_handler: Rapsys\BlogBundle\Handler\AccessDeniedHandler
79
80 # Remember me
81 #XXX: see https://symfony.com/doc/current/security/remember_me.html
82 remember_me:
83 # Use APP_SECRET
84 secret: '%kernel.secret%'
85 # Always remember me
86 always_remember_me: true
87
88 # Set providers
89 providers:
90 database:
91 entity:
92 class: 'Rapsys\TreeBundle\Entity\User'
93 property: 'mail'
94
95 # Set role hierarchy
96 role_hierarchy:
97 ROLE_USER: [ 'ROLE_GUEST' ]
98 ROLE_ADMIN: [ 'ROLE_GUEST', 'ROLE_USER' ]
99
100 # Services configuration
101 services:
102 # Register tree controller
103 Rapsys\TreeBundle\Controller\TreeController:
104 arguments: [ '@service_container', '@router', '@request_stack', '@translator', '@twig' ]
105 tags: [ 'controller.service_arguments' ]
106
107 # Twig Configuration
108 twig:
109 # Enforce debug
110 #auto_reload: ~
111 debug: '%kernel.debug%'
112 #strict_variables: '%kernel.debug%'
113
114 # Disable cache
115 # XXX: enable forced regeneration of css and js at each page load
116 cache: false
117
118 # Fix form layout for css
119 # XXX: @RapsysTree is a shortcut to vendor/rapsys/treebundle/Resources/views directory here
120 #form_theme: [ '@RapsysTree/form/form_div_layout.html.twig' ]
121
122 # Set twig paths
123 paths:
124 # Required by email.image(site_logo) directive
125 # XXX: Allow twig to resolve @RapsysTree/png/logo.png in vendor/rapsys/treebundle/Resources/public/png/logo.png
126 '%kernel.project_dir%/vendor/rapsys/treebundle/Resources/public': 'RapsysTree'
127 # Override default exception controller
128 #exception_controller: Rapsys\TreeBundle\Controller\ErrorController::preview