Files
e-ticket/config/packages/security.yaml

37 lines
988 B
YAML
Raw Normal View History

2026-03-04 21:52:29 +01:00
security:
password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
providers:
app_user_provider:
entity:
class: App\Entity\User
property: email
2026-03-04 21:52:29 +01:00
firewalls:
dev:
pattern: ^/(_profiler|_wdt|assets|build)/
security: false
main:
lazy: true
provider: app_user_provider
form_login:
login_path: app_login
check_path: app_login
enable_csrf: true
logout:
path: app_logout
target: app_home
2026-03-04 21:52:29 +01:00
access_control:
- { path: ^/mon-compte, roles: ROLE_USER }
2026-03-04 21:52:29 +01:00
when@test:
security:
password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
algorithm: auto
cost: 4
time_cost: 3
memory_cost: 10