Refactors and start of candidate answer relation

This commit is contained in:
2026-03-09 22:00:40 +01:00
parent 6d3402b8e3
commit 45f11f3564
24 changed files with 513 additions and 214 deletions
-10
View File
@@ -5,12 +5,10 @@ security:
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
providers:
# used to reload user from session & other features (e.g. switch_user)
tvdt_user_provider:
entity:
class: Tvdt\Entity\User
property: email
# used to reload user from session & other features (e.g. switch_user)
firewalls:
dev:
# Ensure dev tools and static assets are always allowed
@@ -26,15 +24,7 @@ security:
default_target_path: tvdt_backoffice_index
logout:
path: tvdt_login_logout
# where to redirect after logout
# target: tvdt_any_route
# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#the-firewall
# https://symfony.com/doc/current/security/impersonating_user.html
# switch_user: true
access_control:
- { path: ^/admin, roles: ROLE_ADMIN }
- { path: ^/backoffice, roles: ROLE_USER }