1 #RapsysAir configuration
6 mail: 'airlibre@rapsys.eu'
9 long: 'Raphaël Gertz all rights reserved'
10 short: 'Copyright 2019'
12 #RapsysUser configuration
16 group: 'Rapsys\AirBundle\Entity\Group'
17 title: 'Rapsys\AirBundle\Entity\Title'
18 user: 'Rapsys\AirBundle\Entity\User'
25 name: '%rapsys_air.contact.name%'
26 mail: '%rapsys_air.contact.mail%'
32 name: '@RapsysAir/form/login.html.twig'
35 copy_long: '%rapsys_air.copy.long%'
36 copy_short: '%rapsys_air.copy.short%'
37 site_ico: '%rapsys_air.site.ico%'
38 site_logo: '%rapsys_air.site.logo%'
39 site_png: '%rapsys_air.site.png%'
40 site_svg: '%rapsys_air.site.svg%'
41 site_title: '%rapsys_air.site.title%'
46 recover_mail: 'recover_url'
48 name: '@RapsysAir/form/recover.html.twig'
51 copy_long: '%rapsys_air.copy.long%'
52 copy_short: '%rapsys_air.copy.short%'
53 site_ico: '%rapsys_air.site.ico%'
54 site_logo: '%rapsys_air.site.logo%'
55 site_png: '%rapsys_air.site.png%'
56 site_svg: '%rapsys_air.site.svg%'
57 site_title: '%rapsys_air.site.title%'
59 subject: '%%recipient_name%% welcome back to %%site_title%%'
60 html: '@RapsysAir/mail/recover.html.twig'
61 text: '@RapsysAir/mail/recover.text.twig'
63 #Mail recover replacement
67 recover_mail: 'recover_url'
69 name: '@RapsysAir/form/recover_mail.html.twig'
72 copy_long: '%rapsys_air.copy.long%'
73 copy_short: '%rapsys_air.copy.short%'
74 site_ico: '%rapsys_air.site.ico%'
75 site_logo: '%rapsys_air.site.logo%'
76 site_png: '%rapsys_air.site.png%'
77 site_svg: '%rapsys_air.site.svg%'
78 site_title: '%rapsys_air.site.title%'
80 subject: '%%recipient_name%% welcome back to %%site_title%%'
81 html: '@RapsysAir/mail/recover_mail.html.twig'
82 text: '@RapsysAir/mail/recover_mail.text.twig'
89 form: 'Rapsys\AirBundle\Form\RegisterType'
90 name: '@RapsysAir/form/register.html.twig'
93 copy_long: '%rapsys_air.copy.long%'
94 copy_short: '%rapsys_air.copy.short%'
95 site_ico: '%rapsys_air.site.ico%'
96 site_logo: '%rapsys_air.site.logo%'
97 site_png: '%rapsys_air.site.png%'
98 site_svg: '%rapsys_air.site.svg%'
99 site_title: '%rapsys_air.site.title%'
101 subject: '%%recipient_name%% welcome to %%site_title%%'
102 html: '@RapsysAir/mail/register.html.twig'
103 text: '@RapsysAir/mail/register.text.twig'
106 #Doctrine configuration
110 #Force resolution of UserBundle entities to AirBundle one
111 #XXX: without these lines, relations are lookup in parent namespace ignoring AirBundle extension
112 resolve_target_entities:
113 Rapsys\UserBundle\Entity\Group: Rapsys\AirBundle\Entity\Group
114 Rapsys\UserBundle\Entity\Title: Rapsys\AirBundle\Entity\Title
115 Rapsys\UserBundle\Entity\User: Rapsys\AirBundle\Entity\User
117 #Security configuration
121 #Rapsys\AirBundle\Entity\User: plaintext
122 Rapsys\AirBundle\Entity\User:
129 class: Rapsys\AirBundle\Entity\User
134 #Disables authentication for assets and the profiler, adapt it according to your needs
136 pattern: ^/(_(profiler|wdt)|css|images|js)/
140 #Allow anonymous access
143 #Disable logout on user change
144 logout_on_user_change: true
146 #Activate database provider
149 #XXX: https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
153 #XXX: https://symfony.com/doc/current/security/form_login_setup.html
154 #TODO: https://symfony.com/doc/current/security/guard_authentication.html
157 login_path: rapsys_user_login
158 check_path: rapsys_user_login
159 username_parameter: 'login[mail]'
160 password_parameter: 'login[password]'
164 path: rapsys_user_logout
165 #XXX: see https://symfony.com/doc/current/security.html#logging-out
166 success_handler: Rapsys\AirBundle\Security\LogoutSuccessHandler
169 #Set custom access denied handler
170 access_denied_handler: Rapsys\AirBundle\Security\AccessDeniedHandler
174 ROLE_GUEST: [ 'ROLE_USER' ]
175 ROLE_REGULAR: [ 'ROLE_USER', 'ROLE_GUEST' ]
176 ROLE_SENIOR: [ 'ROLE_USER', 'ROLE_GUEST', 'ROLE_REGULAR' ]
177 ROLE_ADMIN: [ 'ROLE_USER', 'ROLE_GUEST', 'ROLE_REGULAR', 'ROLE_SENIOR' ]
179 #Framework configuration
183 fallbacks: [ 'fr', 'en' ]
187 cookie_secure: 'auto'
188 cookie_samesite: 'lax'
189 disallow_search_engine_index: false
191 # error_controller: Rapsys\AirBundle\Controller\ErrorController::show
193 # #Assets configuration
194 # XXX: don't use that shit, it breaks assets._default_package url generation
196 # #Set default base path
197 # #base_path: '/bundles/%%s'
198 # #Set default version
200 # #Set default format
201 # version_format: '%%s?v=%%s'
205 # base_path: '/bundles/%%s'
207 #Service configuration
209 #Register twig file_get_contents extension
210 #XXX: obsolete by email.image twig filter in "twig/extensions" or "twig/html-extra"
211 rapsys_air.twig.file_get_contents:
212 class: 'Rapsys\AirBundle\Twig\FileGetContentsExtension'
213 tags: [ 'twig.extension' ]
214 #Register twig base64 extension
215 rapsys_air.twig.base64:
216 class: 'Rapsys\AirBundle\Twig\Base64Extension'
217 tags: [ 'twig.extension' ]
218 #Register twig bb2html extension
219 rapsys_air.twig.bb2html:
220 class: 'Rapsys\AirBundle\Twig\Bb2htmlExtension'
221 tags: [ 'twig.extension' ]
222 #Register default controller
223 Rapsys\AirBundle\Controller\DefaultController:
224 arguments: [ '@service_container', '@router', '@rapsys.slugger', '@translator' ]
225 tags: [ 'controller.service_arguments' ]
226 #Register location controller
227 Rapsys\AirBundle\Controller\LocationController:
228 arguments: [ '@service_container', '@router', '@rapsys.slugger', '@translator' ]
229 tags: [ 'controller.service_arguments' ]
230 #Register session controller
231 Rapsys\AirBundle\Controller\SessionController:
232 arguments: [ '@service_container', '@router', '@rapsys.slugger', '@translator' ]
233 tags: [ 'controller.service_arguments' ]
234 #Register application controller
235 Rapsys\AirBundle\Controller\ApplicationController:
236 arguments: [ '@service_container', '@router', '@rapsys.slugger', '@translator' ]
237 tags: [ 'controller.service_arguments' ]
238 #Register user controller
239 Rapsys\AirBundle\Controller\UserController:
240 arguments: [ '@service_container', '@router', '@rapsys.slugger', '@translator' ]
241 tags: [ 'controller.service_arguments' ]
242 #Register error controller
243 # Rapsys\AirBundle\Controller\ErrorController:
244 # arguments: [ '@service_container', '@router', '@rapsys.slugger', '@translator' ]
245 # tags: [ 'controller.service_arguments' ]
246 #Register locale event subscriber
247 Rapsys\AirBundle\EventSubscriber\LocaleSubscriber:
248 arguments: [ '@router', '%rapsys_air.locales%' ]
249 tags: [ 'kernel.event_subscriber' ]
250 #Register access denied handler
251 Rapsys\AirBundle\Security\AccessDeniedHandler:
252 arguments: [ '@service_container', '@twig', '@router', '@translator' ]
253 #Register logout success handler
254 Rapsys\AirBundle\Security\LogoutSuccessHandler:
255 arguments: [ '@router' ]
256 #Register air fixtures
257 Rapsys\AirBundle\DataFixtures\AirFixtures:
258 tags: [ 'doctrine.fixture.orm' ]
259 #Replace assets packages
261 class: 'Symfony\Component\Asset\Packages'
262 arguments: [ '@rapsys.path_package' ]
263 # #Set version strategy
264 # assets.static_version_strategy:
265 # class: Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy
266 # arguments: [ 'x', '%%s?v=%%s' ]
267 Rapsys\AirBundle\Form\ApplicationType:
268 arguments: [ '@doctrine', '@translator' ]
269 tags: [ 'form.type' ]
277 #Fix form layout for css
278 #XXX: @RapsysAir is a shortcut to vendor/rapsys/airbundle/Resources/views directory here
279 form_theme: [ '@RapsysAir/form/form_div_layout.html.twig' ]
282 #Required by email.image(site_logo) directive
283 #XXX: Allow twig to resolve @RapsysAir/png/logo.png in vendor/rapsys/airbundle/Resources/public/png/logo.png
284 '%kernel.project_dir%/vendor/rapsys/airbundle/Resources/public': 'RapsysAir'
285 #Override default exception controller
286 #exception_controller: Rapsys\AirBundle\Controller\ErrorController::preview