Revert to default User group
Add by, link and title copyright fields
Update fields to translate
Map enum to string to workaround doctrine missing support
Add twig intl extension
Disable twig debug and auto_reload
Add location form type
Rename SessionEdit in Session form type
Add request stack to AccessDeniedHandler controller
contact:
name: 'Raphaël Gertz'
mail: 'airlibre@rapsys.eu'
contact:
name: 'Raphaël Gertz'
mail: 'airlibre@rapsys.eu'
- #Copyright
- copy:
- short: 'Copyright 2019-2020'
#RapsysUser configuration
rapsys_user:
#Class replacement
class:
group: 'Rapsys\AirBundle\Entity\Group'
#RapsysUser configuration
rapsys_user:
#Class replacement
class:
group: 'Rapsys\AirBundle\Entity\Group'
- title: 'Rapsys\AirBundle\Entity\Title'
+ civility: 'Rapsys\AirBundle\Entity\Civility'
user: 'Rapsys\AirBundle\Entity\User'
#Default replacement
default:
user: 'Rapsys\AirBundle\Entity\User'
#Default replacement
default:
- group: [ 'Senior' ]
- title: 'Mister'
+ group: [ 'User' ]
+ civility: 'Mister'
#Route replacement
route:
index:
name: 'rapsys_air'
#Translate replacement
#Route replacement
route:
index:
name: 'rapsys_air'
#Translate replacement
- translate: [ 'title', 'site.title', 'copy.long', 'copy.short' ]
+ translate: [ 'title', 'site.title', 'copy.by', 'copy.long', 'copy.short' ]
#Languages replacement
languages:
en: 'English'
#Languages replacement
languages:
en: 'English'
context:
title: 'Login'
copy:
context:
title: 'Login'
copy:
+ by: '%rapsys_air.copy.by%'
+ link: '%rapsys_air.copy.link%'
long: '%rapsys_air.copy.long%'
short: '%rapsys_air.copy.short%'
long: '%rapsys_air.copy.long%'
short: '%rapsys_air.copy.short%'
+ title: '%rapsys_air.copy.title%'
site:
ico: '%rapsys_air.site.ico%'
logo: '%rapsys_air.site.logo%'
site:
ico: '%rapsys_air.site.ico%'
logo: '%rapsys_air.site.logo%'
context:
title: 'Recover'
copy:
context:
title: 'Recover'
copy:
+ by: '%rapsys_air.copy.by%'
+ link: '%rapsys_air.copy.link%'
long: '%rapsys_air.copy.long%'
short: '%rapsys_air.copy.short%'
long: '%rapsys_air.copy.long%'
short: '%rapsys_air.copy.short%'
+ title: '%rapsys_air.copy.title%'
site:
ico: '%rapsys_air.site.ico%'
logo: '%rapsys_air.site.logo%'
site:
ico: '%rapsys_air.site.ico%'
logo: '%rapsys_air.site.logo%'
context:
title: 'Mail recover'
copy:
context:
title: 'Mail recover'
copy:
+ by: '%rapsys_air.copy.by%'
+ link: '%rapsys_air.copy.link%'
long: '%rapsys_air.copy.long%'
short: '%rapsys_air.copy.short%'
long: '%rapsys_air.copy.long%'
short: '%rapsys_air.copy.short%'
+ title: '%rapsys_air.copy.title%'
site:
ico: '%rapsys_air.site.ico%'
logo: '%rapsys_air.site.logo%'
site:
ico: '%rapsys_air.site.ico%'
logo: '%rapsys_air.site.logo%'
context:
title: 'Register'
copy:
context:
title: 'Register'
copy:
+ by: '%rapsys_air.copy.by%'
+ link: '%rapsys_air.copy.link%'
long: '%rapsys_air.copy.long%'
short: '%rapsys_air.copy.short%'
long: '%rapsys_air.copy.long%'
short: '%rapsys_air.copy.short%'
+ title: '%rapsys_air.copy.title%'
site:
ico: '%rapsys_air.site.ico%'
logo: '%rapsys_air.site.logo%'
site:
ico: '%rapsys_air.site.ico%'
logo: '%rapsys_air.site.logo%'
#Doctrine configuration
doctrine:
#Doctrine configuration
doctrine:
+ #Dbal configuration
+ dbal:
+ mapping_types:
+ enum: string
#Orm configuration
orm:
#Force resolution of UserBundle entities to AirBundle one
#XXX: without these lines, relations are lookup in parent namespace ignoring AirBundle extension
resolve_target_entities:
Rapsys\UserBundle\Entity\Group: Rapsys\AirBundle\Entity\Group
#Orm configuration
orm:
#Force resolution of UserBundle entities to AirBundle one
#XXX: without these lines, relations are lookup in parent namespace ignoring AirBundle extension
resolve_target_entities:
Rapsys\UserBundle\Entity\Group: Rapsys\AirBundle\Entity\Group
- Rapsys\UserBundle\Entity\Title: Rapsys\AirBundle\Entity\Title
+ Rapsys\UserBundle\Entity\Civility: Rapsys\AirBundle\Entity\Civility
Rapsys\UserBundle\Entity\User: Rapsys\AirBundle\Entity\User
#Security configuration
Rapsys\UserBundle\Entity\User: Rapsys\AirBundle\Entity\User
#Security configuration
#Framework configuration
framework:
default_locale: 'fr'
#Framework configuration
framework:
default_locale: 'fr'
+ #error_controller: 'Rapsys\AirBundle\Controller\ErrorController::show'
translator:
fallbacks: [ 'fr', 'en' ]
session:
translator:
fallbacks: [ 'fr', 'en' ]
session:
rapsys_air.twig.bb2html:
class: 'Rapsys\AirBundle\Twig\Bb2htmlExtension'
tags: [ 'twig.extension' ]
rapsys_air.twig.bb2html:
class: 'Rapsys\AirBundle\Twig\Bb2htmlExtension'
tags: [ 'twig.extension' ]
+ #Register twig intl extension
+ #XXX: https://www.php.net/manual/en/class.intldateformatter.php
+ #XXX: https://stackoverflow.com/questions/25948853/how-to-install-the-intl-extension-for-twig
+ rapsys_air.twig.intl:
+ class: 'Twig\Extensions\IntlExtension'
+ tags: [ 'twig.extension' ]
#new TwigFilter('markdown_to_html', ['Twig\\Extra\\Markdown\\MarkdownRuntime', 'convert'], ['is_safe' => ['all']]),
#new TwigFilter('html_to_markdown', 'Twig\\Extra\\Markdown\\twig_html_to_markdown', ['is_safe' => ['all']]),
#Register twig markdown_to_html extension
#new TwigFilter('markdown_to_html', ['Twig\\Extra\\Markdown\\MarkdownRuntime', 'convert'], ['is_safe' => ['all']]),
#new TwigFilter('html_to_markdown', 'Twig\\Extra\\Markdown\\twig_html_to_markdown', ['is_safe' => ['all']]),
#Register twig markdown_to_html extension
Rapsys\AirBundle\Controller\LocationController:
arguments: [ '@service_container', '@router', '@request_stack', '@translator' ]
tags: [ 'controller.service_arguments' ]
Rapsys\AirBundle\Controller\LocationController:
arguments: [ '@service_container', '@router', '@request_stack', '@translator' ]
tags: [ 'controller.service_arguments' ]
- #Register organizer controller
- Rapsys\AirBundle\Controller\OrganizerController:
+ #Register user controller
+ Rapsys\AirBundle\Controller\UserController:
arguments: [ '@service_container', '@router', '@request_stack', '@translator' ]
tags: [ 'controller.service_arguments' ]
#Register session controller
arguments: [ '@service_container', '@router', '@request_stack', '@translator' ]
tags: [ 'controller.service_arguments' ]
#Register session controller
arguments: [ '@service_container', '@router', '@request_stack', '@translator' ]
tags: [ 'controller.service_arguments' ]
#Register error controller
arguments: [ '@service_container', '@router', '@request_stack', '@translator' ]
tags: [ 'controller.service_arguments' ]
#Register error controller
-# Rapsys\AirBundle\Controller\ErrorController:
-# arguments: [ '@service_container', '@router', '@request_stack', '@translator' ]
-# tags: [ 'controller.service_arguments' ]
+ Rapsys\AirBundle\Controller\ErrorController:
+ arguments: [ '@service_container', '@router', '@request_stack', '@translator' ]
+ tags: [ 'controller.service_arguments' ]
#Register locale event subscriber
Rapsys\AirBundle\EventSubscriber\LocaleSubscriber:
arguments: [ '@router', '%rapsys_air.locales%' ]
tags: [ 'kernel.event_subscriber' ]
#Register access denied handler
Rapsys\AirBundle\Security\AccessDeniedHandler:
#Register locale event subscriber
Rapsys\AirBundle\EventSubscriber\LocaleSubscriber:
arguments: [ '@router', '%rapsys_air.locales%' ]
tags: [ 'kernel.event_subscriber' ]
#Register access denied handler
Rapsys\AirBundle\Security\AccessDeniedHandler:
- arguments: [ '@service_container', '@twig', '@router', '@translator' ]
+ arguments: [ '@service_container', '@twig', '@router', '@request_stack', '@translator' ]
#Register logout success handler
Rapsys\AirBundle\Security\LogoutSuccessHandler:
arguments: [ '@router' ]
#Register logout success handler
Rapsys\AirBundle\Security\LogoutSuccessHandler:
arguments: [ '@router' ]
Rapsys\AirBundle\Form\ApplicationType:
arguments: [ '@doctrine', '@translator' ]
tags: [ 'form.type' ]
Rapsys\AirBundle\Form\ApplicationType:
arguments: [ '@doctrine', '@translator' ]
tags: [ 'form.type' ]
- Rapsys\AirBundle\Form\SessionEditType:
+ Rapsys\AirBundle\Form\LocationType:
+ tags: [ 'form.type' ]
+ Rapsys\AirBundle\Form\SessionType:
arguments: [ '@doctrine' ]
tags: [ 'form.type' ]
Rapsys\AirBundle\Form\Extension\Type\HiddenEntityType:
arguments: [ '@doctrine' ]
tags: [ 'form.type' ]
Rapsys\AirBundle\Form\Extension\Type\HiddenEntityType:
#Twig Configuration
twig:
#Enforce debug
#Twig Configuration
twig:
#Enforce debug
- debug: true
- auto_reload: ~
+ #debug: true
+ #auto_reload: ~
cache: false
#Fix form layout for css
#XXX: @RapsysAir is a shortcut to vendor/rapsys/airbundle/Resources/views directory here
cache: false
#Fix form layout for css
#XXX: @RapsysAir is a shortcut to vendor/rapsys/airbundle/Resources/views directory here