1 #RapsysAir configuration
4 #RapsysUser configuration
8 group: 'Rapsys\AirBundle\Entity\Group'
9 civility: 'Rapsys\AirBundle\Entity\Civility'
10 user: 'Rapsys\AirBundle\Entity\User'
19 #Translate replacement
20 translate: [ 'title', 'password', 'site.title', 'copy.by', 'copy.long', 'copy.short', 'copy.title' ]
21 #Languages replacement
27 title: '%rapsys_air.contact.title%'
28 mail: '%rapsys_air.contact.mail%'
32 by: '%rapsys_air.copy.by%'
33 link: '%rapsys_air.copy.link%'
34 long: '%rapsys_air.copy.long%'
35 short: '%rapsys_air.copy.short%'
36 title: '%rapsys_air.copy.title%'
38 ico: '%rapsys_air.site.ico%'
39 logo: '%rapsys_air.site.logo%'
40 png: '%rapsys_air.site.png%'
41 svg: '%rapsys_air.site.svg%'
42 title: '%rapsys_air.site.title%'
43 url: '%rapsys_air.site.url%'
49 edit: 'Rapsys\AirBundle\Form\RegisterType'
50 name: '@RapsysAir/form/edit.html.twig'
52 title: 'Modify account'
53 password: 'Modify password'
59 name: '@RapsysAir/form/login.html.twig'
66 recover: 'recover_url'
68 name: '@RapsysAir/form/recover.html.twig'
72 subject: 'Welcome back %%recipient_name%% to %%site.title%%'
73 html: '@RapsysAir/mail/recover.html.twig'
74 text: '@RapsysAir/mail/recover.text.twig'
80 confirm: 'confirm_url'
82 form: 'Rapsys\AirBundle\Form\RegisterType'
83 name: '@RapsysAir/form/register.html.twig'
87 subject: 'Welcome %%recipient_name%% to %%site.title%%'
88 html: '@RapsysAir/mail/register.html.twig'
89 text: '@RapsysAir/mail/register.text.twig'
92 #Doctrine configuration
100 #Force resolution of UserBundle entities to AirBundle one
101 #XXX: without these lines, relations are lookup in parent namespace ignoring AirBundle extension
102 resolve_target_entities:
103 Rapsys\UserBundle\Entity\Group: Rapsys\AirBundle\Entity\Group
104 Rapsys\UserBundle\Entity\Civility: Rapsys\AirBundle\Entity\Civility
105 Rapsys\UserBundle\Entity\User: Rapsys\AirBundle\Entity\User
107 #Security configuration
111 #Rapsys\AirBundle\Entity\User: plaintext
112 Rapsys\AirBundle\Entity\User:
119 class: Rapsys\AirBundle\Entity\User
124 #Disables authentication for assets and the profiler, adapt it according to your needs
126 pattern: ^/(_(profiler|wdt)|css|images|js)/
130 #Allow anonymous access
133 #Disable logout on user change
134 logout_on_user_change: true
136 #Activate database provider
139 #XXX: https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
143 #XXX: https://symfony.com/doc/current/security/form_login_setup.html
144 #TODO: https://symfony.com/doc/current/security/guard_authentication.html
146 #Redirect to referer if different from login route
149 login_path: rapsys_user_login
151 check_path: rapsys_user_login
153 username_parameter: 'login[mail]'
155 password_parameter: 'login[password]'
160 path: rapsys_user_logout
161 #Logout default target
164 #Set custom access denied handler
165 access_denied_handler: Rapsys\AirBundle\Handler\AccessDeniedHandler
168 #XXX: see https://symfony.com/doc/current/security/remember_me.html
171 secret: '%kernel.secret%'
173 always_remember_me: true
177 ROLE_GUEST: [ 'ROLE_USER' ]
178 ROLE_REGULAR: [ 'ROLE_USER', 'ROLE_GUEST' ]
179 ROLE_SENIOR: [ 'ROLE_USER', 'ROLE_GUEST', 'ROLE_REGULAR' ]
180 ROLE_ADMIN: [ 'ROLE_USER', 'ROLE_GUEST', 'ROLE_REGULAR', 'ROLE_SENIOR' ]
182 #Framework configuration
184 default_locale: 'fr_fr'
185 #error_controller: 'Rapsys\AirBundle\Controller\ErrorController::show'
187 fallbacks: [ 'fr_fr', 'en_gb' ]
191 cookie_secure: 'auto'
192 cookie_samesite: 'lax'
193 disallow_search_engine_index: false
194 secret: '%env(APP_SECRET)%'
196 # error_controller: Rapsys\AirBundle\Controller\ErrorController::show
198 # #Assets configuration
199 # XXX: don't use that shit, it breaks assets._default_package url generation
201 # #Set default base path
202 # #base_path: '/bundles/%%s'
203 # #Set default version
205 # #Set default format
206 # version_format: '%%s?v=%%s'
210 # base_path: '/bundles/%%s'
212 #Service configuration
214 #Register twig file_get_contents extension
215 #XXX: obsolete by email.image twig filter in "twig/extensions" or "twig/html-extra"
216 rapsys_air.twig.file_get_contents:
217 class: 'Rapsys\AirBundle\Twig\FileGetContentsExtension'
218 tags: [ 'twig.extension' ]
219 #Register twig base64 extension
220 rapsys_air.twig.base64:
221 class: 'Rapsys\AirBundle\Twig\Base64Extension'
222 tags: [ 'twig.extension' ]
223 #Register twig bb2html extension
224 rapsys_air.twig.bb2html:
225 class: 'Rapsys\AirBundle\Twig\Bb2htmlExtension'
226 tags: [ 'twig.extension' ]
227 #Register twig intl extension
228 #XXX: https://www.php.net/manual/en/class.intldateformatter.php
229 #XXX: https://stackoverflow.com/questions/25948853/how-to-install-the-intl-extension-for-twig
230 rapsys_air.twig.intl:
231 class: 'Twig\Extensions\IntlExtension'
232 tags: [ 'twig.extension' ]
233 #new TwigFilter('markdown_to_html', ['Twig\\Extra\\Markdown\\MarkdownRuntime', 'convert'], ['is_safe' => ['all']]),
234 #new TwigFilter('html_to_markdown', 'Twig\\Extra\\Markdown\\twig_html_to_markdown', ['is_safe' => ['all']]),
235 #Register twig markdown_to_html extension
236 # #class: 'Twig\Extra\Markdown\DefaultMarkdown'
237 #rapsys_air.twig.markdown_eruse:
238 # class: 'Twig\Extra\Markdown\DefaultMarkdown'
239 #rapsys_air.twig.markdown_runtime:
240 # class: 'Twig\Extra\Markdown\MarkdownRuntime'
241 # arguments: [ '@rapsys_air.twig.markdown_eruse' ]
242 #rapsys_air.markdown:
243 # class: 'Twig\Extra\Markdown\MarkdownExtension'
244 # tags: [ 'twig.extension' ]
245 #Register twig pack extension
246 #rapsys_pack.pack_extension:
247 # class: 'Rapsys\PackBundle\Twig\PackExtension'
248 # arguments: [ '@file_locator', '@service_container', '@rapsys_pack.path_package' ]
249 # tags: [ 'twig.extension' ]
250 #Register application controller
251 Rapsys\AirBundle\Controller\ApplicationController:
252 arguments: [ '@service_container', '@router', '@translator' ]
253 tags: [ 'controller.service_arguments' ]
254 #Register calendar controller
255 Rapsys\AirBundle\Controller\CalendarController:
256 arguments: [ '@service_container', '@router', '@translator' ]
257 tags: [ 'controller.service_arguments' ]
258 #Register default controller
259 Rapsys\AirBundle\Controller\DefaultController:
260 arguments: [ '@service_container', '@router', '@translator' ]
261 tags: [ 'controller.service_arguments' ]
262 #Register location controller
263 Rapsys\AirBundle\Controller\LocationController:
264 arguments: [ '@service_container', '@router', '@translator' ]
265 tags: [ 'controller.service_arguments' ]
266 #Register user controller
267 Rapsys\AirBundle\Controller\UserController:
268 arguments: [ '@service_container', '@router', '@translator' ]
269 tags: [ 'controller.service_arguments' ]
270 #Register session controller
271 Rapsys\AirBundle\Controller\SessionController:
272 arguments: [ '@service_container', '@router', '@translator' ]
273 tags: [ 'controller.service_arguments' ]
274 #Register snippet controller
275 Rapsys\AirBundle\Controller\SnippetController:
276 arguments: [ '@service_container', '@router', '@translator' ]
277 tags: [ 'controller.service_arguments' ]
278 #Register error controller
279 Rapsys\AirBundle\Controller\ErrorController:
280 arguments: [ '@service_container', '@router', '@translator' ]
281 tags: [ 'controller.service_arguments' ]
282 #Register locale event subscriber
283 #TODO: remove that shit now ???
284 #Rapsys\AirBundle\EventSubscriber\LocaleSubscriber:
285 # arguments: [ '@router', '%rapsys_air.locales%' ]
286 # tags: [ 'kernel.event_subscriber' ]
287 #Register facebook event subscriber
288 Rapsys\AirBundle\EventSubscriber\FacebookSubscriber:
289 arguments: [ '@router', '%rapsys_air.locales%' ]
290 tags: [ 'kernel.event_subscriber' ]
291 #Register access denied handler
292 Rapsys\AirBundle\Handler\AccessDeniedHandler:
293 arguments: [ '@service_container', '@twig', '@router', '@request_stack', '@translator' ]
294 #Register air fixtures
295 Rapsys\AirBundle\DataFixtures\AirFixtures:
296 tags: [ 'doctrine.fixture.orm' ]
297 # #Set version strategy
298 # assets.static_version_strategy:
299 # class: Symfony\Component\Asset\VersionStrategy\StaticVersionStrategy
300 # arguments: [ 'x', '%%s?v=%%s' ]
301 Rapsys\AirBundle\Form\ApplicationType:
302 arguments: [ '@doctrine', '@translator' ]
303 tags: [ 'form.type' ]
304 Rapsys\AirBundle\Form\LocationType:
305 tags: [ 'form.type' ]
306 Rapsys\AirBundle\Form\SessionType:
307 arguments: [ '@doctrine' ]
308 tags: [ 'form.type' ]
309 Rapsys\AirBundle\Form\Extension\Type\HiddenEntityType:
310 arguments: [ '@doctrine' ]
311 tags: [ 'form.type' ]
312 Rapsys\AirBundle\Command\AttributeCommand:
313 arguments: [ '@doctrine' ]
314 tags: [ 'console.command' ]
315 Rapsys\AirBundle\Command\CalendarCommand:
316 arguments: [ '@service_container', '@doctrine', '@router', '@translator' ]
317 tags: [ 'console.command' ]
318 Rapsys\AirBundle\Command\RekeyCommand:
319 arguments: [ '@doctrine' ]
320 tags: [ 'console.command' ]
321 Rapsys\AirBundle\Command\WeatherCommand:
322 arguments: [ '@doctrine' ]
323 tags: [ 'console.command' ]
331 #XXX: enable forced regeneration of css and js at each page load
333 #Fix form layout for css
334 #XXX: @RapsysAir is a shortcut to vendor/rapsys/airbundle/Resources/views directory here
335 form_theme: [ '@RapsysAir/form/form_div_layout.html.twig' ]
338 #Required by email.image(site_logo) directive
339 #XXX: Allow twig to resolve @RapsysAir/png/logo.png in vendor/rapsys/airbundle/Resources/public/png/logo.png
340 '%kernel.project_dir%/vendor/rapsys/airbundle/Resources/public': 'RapsysAir'
341 #Override default exception controller
342 #exception_controller: Rapsys\AirBundle\Controller\ErrorController::preview