Skip to content

Commit e1863f9

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #944
2 parents 5764cb6 + 17a96f4 commit e1863f9

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
security:
2+
# https://symfony.com/doc/current/security/experimental_authenticators.html
3+
enable_authenticator_manager: true
4+
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
5+
providers:
6+
users_in_memory: { memory: null }
7+
firewalls:
8+
dev:
9+
pattern: ^/(_(profiler|wdt)|css|images|js)/
10+
security: false
11+
main:
12+
lazy: true
13+
provider: users_in_memory
14+
15+
# activate different ways to authenticate
16+
# https://symfony.com/doc/current/security.html#firewalls-authentication
17+
18+
# https://symfony.com/doc/current/security/impersonating_user.html
19+
# switch_user: true
20+
21+
# Easy way to control access for large sections of your site
22+
# Note: Only the *first* access control that matches will be used
23+
access_control:
24+
# - { path: ^/admin, roles: ROLE_ADMIN }
25+
# - { 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)