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'
22 name: 'rapsys_air_homepage'
25 name: '%rapsys_air.contact.name%'
26 mail: '%rapsys_air.contact.mail%'
30 name: '@RapsysAir/form/login.html.twig'
36 name: '@RapsysAir/form/recover.html.twig'
40 subject: '%%recipient_name%% welcome back to %%site_title%%'
41 html: '@RapsysAir/mail/recover.html.twig'
42 text: '@RapsysAir/mail/recover.text.twig'
45 recover_mail: 'recover_url'
47 copy_long: '%rapsys_air.copy.long%'
48 copy_short: '%rapsys_air.copy.short%'
49 site_logo: '%rapsys_air.site.logo%'
50 site_title: '%rapsys_air.site.title%'
51 #Mail recover replacement
54 name: '@RapsysAir/form/recover_mail.html.twig'
58 subject: '%%recipient_name%% welcome back to %%site_title%%'
59 html: '@RapsysAir/mail/recover_mail.html.twig'
60 text: '@RapsysAir/mail/recover_mail.text.twig'
63 recover_mail: 'recover_url'
65 copy_long: '%rapsys_air.copy.long%'
66 copy_short: '%rapsys_air.copy.short%'
67 site_logo: '%rapsys_air.site.logo%'
68 site_title: '%rapsys_air.site.title%'
72 form: 'Rapsys\AirBundle\Form\RegisterType'
73 name: '@RapsysAir/form/register.html.twig'
77 subject: '%%recipient_name%% welcome to %%site_title%%'
78 html: '@RapsysAir/mail/register.html.twig'
79 text: '@RapsysAir/mail/register.text.twig'
83 copy_long: '%rapsys_air.copy.long%'
84 copy_short: '%rapsys_air.copy.short%'
85 site_logo: '%rapsys_air.site.logo%'
86 site_title: '%rapsys_air.site.title%'
88 #Doctrine configuration
92 #Force resolution of UserBundle entities to AirBundle one
93 #XXX: without these lines, relations are lookup in parent namespace ignoring AirBundle extension
94 resolve_target_entities:
95 Rapsys\UserBundle\Entity\Group: Rapsys\AirBundle\Entity\Group
96 Rapsys\UserBundle\Entity\Title: Rapsys\AirBundle\Entity\Title
97 Rapsys\UserBundle\Entity\User: Rapsys\AirBundle\Entity\User
99 #Security configuration
103 #Rapsys\AirBundle\Entity\User: plaintext
104 Rapsys\AirBundle\Entity\User:
111 class: Rapsys\AirBundle\Entity\User
116 #Disables authentication for assets and the profiler, adapt it according to your needs
118 pattern: ^/(_(profiler|wdt)|css|images|js)/
122 #Allow anonymous access
125 #Disable logout on user change
126 logout_on_user_change: true
128 #Activate database provider
131 #XXX: https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
135 #XXX: https://symfony.com/doc/current/security/form_login_setup.html
138 login_path: rapsys_user_login
139 check_path: rapsys_user_login
140 username_parameter: 'login[mail]'
141 password_parameter: 'login[password]'
148 #Set custom access denied handler
149 access_denied_handler: Rapsys\AirBundle\Security\AccessDeniedHandler
153 ROLE_GUEST: [ 'ROLE_USER' ]
154 ROLE_REGULAR: [ 'ROLE_USER', 'ROLE_GUEST' ]
155 ROLE_SENIOR: [ 'ROLE_USER', 'ROLE_GUEST', 'ROLE_REGULAR' ]
156 ROLE_ADMIN: [ 'ROLE_USER', 'ROLE_GUEST', 'ROLE_REGULAR', 'ROLE_SENIOR' ]
158 #Service configuration
160 #Register twig file_get_contents extension
161 #XXX: obsolete by email.image twig filter in "twig/extensions" or "twig/html-extra"
162 rapsys_air.twig.file_get_contents:
163 class: Rapsys\AirBundle\Twig\FileGetContentsExtension
164 tags: [ 'twig.extension' ]
165 #Register twig base64 extension
166 rapsys_air.twig.base64:
167 class: Rapsys\AirBundle\Twig\Base64Extension
168 tags: [ 'twig.extension' ]
169 #Register twig bb2html extension
170 rapsys_air.twig.bb2html:
171 class: Rapsys\AirBundle\Twig\Bb2htmlExtension
172 tags: [ 'twig.extension' ]
173 #Register default controller
174 Rapsys\AirBundle\Controller\DefaultController:
175 arguments: [ '@service_container', '@translator' ]
177 tags: [ 'controller.service_arguments' ]
178 #Register access denied handler
179 Rapsys\AirBundle\Security\AccessDeniedHandler:
180 arguments: [ '@service_container', '@translator', '@twig' ]
181 #Register air fixtures
182 Rapsys\AirBundle\DataFixtures\AirFixtures:
183 tags: [ 'doctrine.fixture.orm' ]
187 #Fix form layout for css
188 form_theme: [ '@RapsysAir/form/form_div_layout.html.twig' ]