mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
imports:
|
|
- { resource: config.yml }
|
|
|
|
framework:
|
|
test: ~
|
|
session:
|
|
storage_id: session.storage.filesystem
|
|
|
|
security:
|
|
providers:
|
|
users:
|
|
entity:
|
|
class: Chill\MainBundle\Entity\User
|
|
property: username
|
|
|
|
encoders:
|
|
Chill\MainBundle\Entity\User:
|
|
algorithm: bcrypt
|
|
|
|
firewalls:
|
|
dev:
|
|
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
|
security: false
|
|
|
|
|
|
|
|
default:
|
|
anonymous: ~
|
|
|
|
form_login:
|
|
csrf_parameter: _csrf_token
|
|
intention: authenticate
|
|
csrf_provider: form.csrf_provider
|
|
|
|
logout: ~
|
|
|
|
|
|
access_control:
|
|
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
|
|
- { path: ^/admin, roles: ROLE_ADMIN }
|
|
- { path: ^/, roles: ROLE_USER } |