1 # RapsysAir configuration
7 locales: [ 'fr_fr', 'en_gb' ]
12 # RapsysUser configuration
16 civility: 'Rapsys\AirBundle\Entity\Civility'
17 country: 'Rapsys\AirBundle\Entity\Country'
18 dance: 'Rapsys\AirBundle\Entity\Dance'
19 group: 'Rapsys\AirBundle\Entity\Group'
20 user: 'Rapsys\AirBundle\Entity\User'
25 languages: '%rapsys_air.languages%'
26 locales: '%rapsys_air.locales%'
28 country_favorites: [ 'France', 'Belgium', 'Germany', 'Italy', 'Luxembourg', 'Portugal', 'Spain', 'Switzerland' ]
29 dance_favorites: [ 'Argentine Tango Ball', 'Argentine Tango Ball and class', 'Argentine Tango Ball and concert' ]
30 subscription_favorites: [ 'Milonga Raphaël' ]
35 # Translate replacement
36 translate: [ 'title.page', 'title.section', 'title.site', 'password', 'copy.by', 'copy.long', 'copy.short', 'copy.title', 'logo.alt' ]
39 address: '%rapsys_air.contact.address%'
40 name: '%rapsys_air.contact.name%'
43 copy: '%rapsys_air.copy%'
44 icon: '%rapsys_air.icon%'
45 logo: '%rapsys_air.logo%'
46 root: '%rapsys_air.root%'
49 site: '%rapsys_air.title%'
57 edit: 'Rapsys\AirBundle\Form\RegisterType'
58 name: '@RapsysAir/form/edit.html.twig'
61 page: 'Modify account'
62 password: 'Modify password'
68 name: '@RapsysAir/form/login.html.twig'
76 recover: 'recover_url'
78 name: '@RapsysAir/form/recover.html.twig'
83 subject: 'Welcome back %%recipient_name%% to %%site.title%%'
84 html: '@RapsysAir/mail/recover.html.twig'
85 text: '@RapsysAir/mail/recover.text.twig'
87 # Register replacement
97 confirm: 'confirm_url'
99 form: 'Rapsys\AirBundle\Form\RegisterType'
100 name: '@RapsysAir/form/register.html.twig'
105 subject: 'Welcome %%recipient_name%% to %%site.title%%'
106 html: '@RapsysAir/mail/register.html.twig'
107 text: '@RapsysAir/mail/register.text.twig'
110 # Doctrine configuration
115 default_table_options:
117 collation: 'utf8mb4_unicode_ci'
121 # Replace repository factory
122 repository_factory: 'Rapsys\AirBundle\Factory'
124 # Force resolution of UserBundle entities to AirBundle one
125 # XXX: without these lines, relations are lookup in parent namespace ignoring AirBundle extension
126 resolve_target_entities:
127 Rapsys\UserBundle\Entity\Group: 'Rapsys\AirBundle\Entity\Group'
128 Rapsys\UserBundle\Entity\Civility: 'Rapsys\AirBundle\Entity\Civility'
129 Rapsys\UserBundle\Entity\User: 'Rapsys\AirBundle\Entity\User'
133 # XXX: Entity short syntax was removed
134 # XXX: see https://github.com/doctrine/orm/issues/8818
138 dir: 'Resources/config/doctrine'
139 prefix: 'Rapsys\AirBundle\Entity'
140 alias: 'RapsysAirBundle'
142 # Security configuration
144 # Set password hashers
146 # Rapsys\AirBundle\Entity\User: plaintext
147 Rapsys\AirBundle\Entity\User:
154 class: 'Rapsys\AirBundle\Entity\User'
159 # Disables authentication for assets and the profiler, adapt it according to your needs
161 pattern: '^/(_(profiler|wdt)|css|images|js)/'
165 # Allow anonymous access
169 # Activate database provider
172 # XXX: https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
176 # XXX: see https://symfony.com/doc/current/security/form_login_setup.html
177 # XXX: see https://symfony.com/doc/current/security/custom_authenticator.html
179 # Redirect to referer if different from login route
182 login_path: 'rapsysuser_login'
184 check_path: 'rapsysuser_login'
186 username_parameter: 'login[mail]'
188 password_parameter: 'login[password]'
193 path: 'rapsysuser_logout'
194 # Logout default target
197 # Set custom access denied handler
198 access_denied_handler: 'Rapsys\AirBundle\Handler\AccessDeniedHandler'
201 # XXX: see https://symfony.com/doc/current/security/remember_me.html
204 secret: '%kernel.secret%'
206 always_remember_me: true
210 ROLE_GUEST: [ 'ROLE_USER' ]
211 ROLE_REGULAR: [ 'ROLE_USER', 'ROLE_GUEST' ]
212 ROLE_SENIOR: [ 'ROLE_USER', 'ROLE_GUEST', 'ROLE_REGULAR' ]
213 ROLE_ADMIN: [ 'ROLE_USER', 'ROLE_GUEST', 'ROLE_REGULAR', 'ROLE_SENIOR' ]
215 # Framework configuration
220 default_memcached_provider: 'memcached://localhost:11211'
225 adapter: 'cache.adapter.memcached'
228 adapter: 'cache.adapter.memcached'
229 default_locale: '%rapsys_air.locale%'
230 disallow_search_engine_index: false
231 #error_controller: 'Rapsys\AirBundle\Controller\ErrorController::show'
232 # Append ip to mail headers
235 X-Originating-IP: '%env(string:REMOTE_ADDR)%'
236 secret: '%env(string:APP_SECRET)%'
241 storage_factory_id: 'session.storage.factory.native'
242 cookie_secure: 'auto'
243 cookie_samesite: 'lax'
245 fallbacks: '%rapsys_air.locales%'
247 email_validation_mode: 'html5'
249 # Service configuration
251 # Register application controller
252 Rapsys\AirBundle\Controller\ApplicationController:
253 arguments: [ '@security.authorization_checker', '@service_container', '@rapsysuser.access_decision_manager', '@doctrine', '@rapsys_air.facebook_util', '@form.factory', '@rapsyspack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsyspack.map_util', '@rapsyspack.path_package', '@router', '@security.helper', '@rapsyspack.slugger_util', '@request_stack', '@translator', '@twig' ]
254 tags: [ 'controller.service_arguments' ]
255 # Register calendar controller
256 Rapsys\AirBundle\Controller\CalendarController:
257 arguments: [ '@security.authorization_checker', '@service_container', '@rapsysuser.access_decision_manager', '@doctrine', '@rapsys_air.facebook_util', '@form.factory', '@rapsyspack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsyspack.map_util', '@rapsyspack.path_package', '@router', '@security.helper', '@rapsyspack.slugger_util', '@request_stack', '@translator', '@twig' ]
258 tags: [ 'controller.service_arguments' ]
259 # Register default controller
260 Rapsys\AirBundle\Controller\DefaultController:
261 arguments: [ '@security.authorization_checker', '@service_container', '@rapsysuser.access_decision_manager', '@doctrine', '@rapsys_air.facebook_util', '@form.factory', '@rapsyspack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsyspack.map_util', '@rapsyspack.path_package', '@router', '@security.helper', '@rapsyspack.slugger_util', '@request_stack', '@translator', '@twig' ]
262 tags: [ 'controller.service_arguments' ]
263 # Register dance controller
264 Rapsys\AirBundle\Controller\DanceController:
265 arguments: [ '@security.authorization_checker', '@service_container', '@rapsysuser.access_decision_manager', '@doctrine', '@rapsys_air.facebook_util', '@form.factory', '@rapsyspack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsyspack.map_util', '@rapsyspack.path_package', '@router', '@security.helper', '@rapsyspack.slugger_util', '@request_stack', '@translator', '@twig' ]
266 tags: [ 'controller.service_arguments' ]
267 # Register location controller
268 Rapsys\AirBundle\Controller\LocationController:
269 arguments: [ '@security.authorization_checker', '@service_container', '@rapsysuser.access_decision_manager', '@doctrine', '@rapsys_air.facebook_util', '@form.factory', '@rapsyspack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsyspack.map_util', '@rapsyspack.path_package', '@router', '@security.helper', '@rapsyspack.slugger_util', '@request_stack', '@translator', '@twig' ]
270 tags: [ 'controller.service_arguments' ]
271 # Register user controller
272 Rapsys\AirBundle\Controller\UserController:
273 arguments: [ '@user.cache', '@security.authorization_checker', '@service_container', '@doctrine', '@form.factory', '@security.user_password_hasher', '@logger', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@router', '@security.helper', '@rapsyspack.slugger_util', '@request_stack', '@translator', '@twig' ]
274 tags: [ 'controller.service_arguments' ]
275 # Register session controller
276 Rapsys\AirBundle\Controller\SessionController:
277 arguments: [ '@security.authorization_checker', '@service_container', '@rapsysuser.access_decision_manager', '@doctrine', '@rapsys_air.facebook_util', '@form.factory', '@rapsyspack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsyspack.map_util', '@rapsyspack.path_package', '@router', '@security.helper', '@rapsyspack.slugger_util', '@request_stack', '@translator', '@twig' ]
278 tags: [ 'controller.service_arguments' ]
279 # Register snippet controller
280 Rapsys\AirBundle\Controller\SnippetController:
281 arguments: [ '@security.authorization_checker', '@service_container', '@rapsysuser.access_decision_manager', '@doctrine', '@rapsys_air.facebook_util', '@form.factory', '@rapsyspack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsyspack.map_util', '@rapsyspack.path_package', '@router', '@security.helper', '@rapsyspack.slugger_util', '@request_stack', '@translator', '@twig' ]
282 tags: [ 'controller.service_arguments' ]
283 # Register error controller
284 Rapsys\AirBundle\Controller\ErrorController:
285 arguments: [ '@security.authorization_checker', '@service_container', '@rapsysuser.access_decision_manager', '@doctrine', '@rapsys_air.facebook_util', '@form.factory', '@rapsyspack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsyspack.map_util', '@rapsyspack.path_package', '@router', '@security.helper', '@rapsyspack.slugger_util', '@request_stack', '@translator', '@twig' ]
286 #arguments: [ '@service_container', '@router', '@translator' ]
287 tags: [ 'controller.service_arguments' ]
288 # Register access denied handler
289 Rapsys\AirBundle\Handler\AccessDeniedHandler:
290 arguments: [ '@security.authorization_checker', '@service_container', '@rapsysuser.access_decision_manager', '@doctrine', '@rapsys_air.facebook_util', '@form.factory', '@rapsyspack.image_util', '@mailer.mailer', '@doctrine.orm.default_entity_manager', '@rapsyspack.map_util', '@rapsyspack.path_package', '@router', '@security.helper', '@rapsyspack.slugger_util', '@request_stack', '@translator', '@twig' ]
291 # Register air fixtures
292 Rapsys\AirBundle\DataFixtures\AirFixtures:
293 arguments: [ '@service_container', '@security.user_password_hasher' ]
294 tags: [ 'doctrine.fixture.orm' ]
295 # Register application form
296 Rapsys\AirBundle\Form\ApplicationType:
297 arguments: [ '@doctrine', '@translator' ]
298 tags: [ 'form.type' ]
299 # Register location form
300 Rapsys\AirBundle\Form\LocationType:
301 tags: [ 'form.type' ]
302 # Register session form
303 Rapsys\AirBundle\Form\SessionType:
304 arguments: [ '@doctrine' ]
305 tags: [ 'form.type' ]
306 # Register hidden entity form type
307 Rapsys\AirBundle\Form\Extension\Type\HiddenEntityType:
308 arguments: [ '@doctrine' ]
309 tags: [ 'form.type' ]
310 # Register contact form
311 Rapsys\AirBundle\Form\ContactType:
312 arguments: [ '@rapsyspack.image_util', '@rapsyspack.slugger_util', '@translator' ]
313 tags: [ 'form.type' ]
314 # Register register form
315 Rapsys\AirBundle\Form\RegisterType:
316 arguments: [ '@doctrine.orm.entity_manager' ]
317 tags: [ 'form.type' ]
318 # Register attribute command
319 Rapsys\AirBundle\Command\AttributeCommand:
320 arguments: [ '@doctrine' ]
321 tags: [ 'console.command' ]
322 # Register calendar command
323 Rapsys\AirBundle\Command\CalendarCommand:
324 arguments: [ '@doctrine', '@router', '@rapsyspack.slugger_util', '@translator', 'airlibre', 0, '%kernel.project_dir%/var/cache', '%kernel.default_locale%' ]
325 tags: [ 'console.command' ]
326 # Register calendar2 command
327 Rapsys\AirBundle\Command\Calendar2Command:
328 arguments: [ '@doctrine', '@router', '@rapsyspack.slugger_util', '@translator', '%kernel.default_locale%', '%env(string:GOOGLE_PROJECT)', '%env(string:GOOGLE_CLIENT)', '%env(string:GOOGLE_SECRET)' ]
329 tags: [ 'console.command' ]
330 # Register rekey command
331 Rapsys\AirBundle\Command\RekeyCommand:
332 arguments: [ '@doctrine' ]
333 tags: [ 'console.command' ]
334 # Register weather command
335 Rapsys\AirBundle\Command\WeatherCommand:
336 arguments: [ '@doctrine', '@filesystem' ]
337 tags: [ 'console.command' ]
338 # Register repository factory
339 Rapsys\AirBundle\Factory:
340 arguments: [ '@request_stack', '@router', '@rapsyspack.slugger_util', '@translator', '%kernel.default_locale%', '%rapsys_air.languages%' ]
341 # Register facebook util service
342 rapsys_air.facebook_util:
343 class: 'Rapsys\PackBundle\Util\FacebookUtil'
344 arguments: [ '@router', '%kernel.project_dir%/var/cache', '%rapsyspack.path%', 'facebook', '%rapsys_air.path%/png/facebook.png', { irishgrover: '%rapsys_air.path%/ttf/irishgrover.v10.ttf', labelleaurore: '%rapsys_air.path%/ttf/labelleaurore.v10.ttf', dejavusans: '%rapsys_air.path%/ttf/dejavusans.2.37.ttf', droidsans: '%rapsys_air.path%/ttf/droidsans.regular.ttf' } ]
346 # Register security password_hasher_factory as public
347 # XXX: required for command `php bin/console doctrine:`
348 security.password_hasher_factory:
349 class: 'Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactory'
350 arguments: [ { 'Rapsys\AirBundle\Entity\User': { class: 'Symfony\Component\PasswordHasher\Hasher\NativePasswordHasher', arguments: [ ~, ~, ~, '2y'] } } ]
352 # Register facebook event subscriber
353 Rapsys\PackBundle\Subscriber\FacebookSubscriber:
354 arguments: [ '@router', '%rapsys_air.locales%' ]
355 tags: [ 'kernel.event_subscriber' ]
356 # Register dotenv:dump command
357 Symfony\Component\Dotenv\Command\DotenvDumpCommand: ~
363 debug: '%kernel.debug%'
364 #strict_variables: '%kernel.debug%'
367 # XXX: enable forced regeneration of css and js at each page load
370 # Fix form layout for css
371 # XXX: @RapsysAir is a shortcut to vendor/rapsys/airbundle/Resources/views directory here
372 form_theme: [ '@RapsysAir/form/form_div_layout.html.twig' ]
376 # Required by email.image(site_logo) directive
377 # XXX: Allow twig to resolve @RapsysAir/png/logo.png in vendor/rapsys/airbundle/Resources/public/png/logo.png
378 '%kernel.project_dir%/vendor/rapsys/airbundle/Resources/public': 'RapsysAir'
379 # Override default exception controller
380 #exception_controller: Rapsys\AirBundle\Controller\ErrorController::preview