| 1 | security: |
| 2 | # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers |
| 3 | providers: |
| 4 | in_memory: { memory: ~ } |
| 5 | firewalls: |
| 6 | dev: |
| 7 | pattern: ^/(_(profiler|wdt)|css|images|js)/ |
| 8 | security: false |
| 9 | main: |
| 10 | anonymous: true |
| 11 | |
| 12 | # activate different ways to authenticate |
| 13 | |
| 14 | # http_basic: true |
| 15 | # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate |
| 16 | |
| 17 | # form_login: true |
| 18 | # https://symfony.com/doc/current/security/form_login_setup.html |
| 19 | |
| 20 | # Easy way to control access for large sections of your site |
| 21 | # Note: Only the *first* access control that matches will be used |
| 22 | access_control: |
| 23 | # - { path: ^/admin, roles: ROLE_ADMIN } |
| 24 | # - { path: ^/profile, roles: ROLE_USER } |