Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.bachtale.com_1719306535
/
htdocs
/
config
/
packages
/
/srv/data/trash/vhost_www.bachtale.com_1719306535/htdocs/config/packages/security.yaml
security: encoders: App\Entity\User: algorithm: auto # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers providers: in_memory: { memory: null } in_database: entity: class: App\Entity\User property: email firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: anonymous: true provider: in_database form_login: login_path: security_login check_path: security_login success_handler: redirect_after_login logout: path: security_logout target: home access_denied_handler: App\Security\AccessDeniedHandler pattern: ^/ user_checker: App\Security\UserChecker # activate different ways to authenticate # https://symfony.com/doc/current/security.html#firewalls-authentication # https://symfony.com/doc/current/security/impersonating_user.html # switch_user: true # Easy way to control access for large sections of your site # Note: Only the *first* access control that matches will be used role_hierarchy: # un membre avec le ROLE_ADMIN aura également le ROLE_USER ROLE_ADMIN: [ROLE_USER] # Le ROLE_SUPER_ADMIN avec le ROLE_ALLOWED_TO_SWITCH qui permet de s'authentifier en se faisant passer pour n'importe quel membre. Particulièrement utile pour débugger son code. ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH] # Easy way to control access for large sections of your site # Note: Only the *first* access control that matches will be used access_control: - { path: ^/connexion, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/inscription, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/admin/*, roles: ROLE_ADMIN } - { path: '^/', roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }