Skip to content

Commit ce6d359

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #778
2 parents da2347c + 2131c6c commit ce6d359

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
security:
2+
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
3+
providers:
4+
users_in_memory: { memory: null }
5+
firewalls:
6+
dev:
7+
pattern: ^/(_(profiler|wdt)|css|images|js)/
8+
security: false
9+
main:
10+
anonymous: true
11+
lazy: true
12+
provider: users_in_memory
13+
14+
# activate different ways to authenticate
15+
# https://symfony.com/doc/current/security.html#firewalls-authentication
16+
17+
# https://symfony.com/doc/current/security/impersonating_user.html
18+
# switch_user: true
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 }
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"bundles": {
3+
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": ["all"]
4+
},
5+
"copy-from-recipe": {
6+
"config/": "%CONFIG_DIR%/"
7+
},
8+
"aliases": ["security"]
9+
}

0 commit comments

Comments
 (0)