Skip to content

Commit a7c4193

Browse files
[Security]: Updating for new recipe
Page: https://symfony.com/doc/7.4/security.html * I changed the regex to match the new recipe after symfony/recipes#1395 * I added the longer explanatory comment, as suggested at symfony/recipes#1395 (comment)
1 parent 2df608a commit a7c4193

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

security.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ creates a ``security.yaml`` configuration file for you:
3131
users_in_memory: { memory: null }
3232
firewalls:
3333
dev:
34-
pattern: ^/(_(profiler|wdt)|css|images|js)/
34+
# 'assets/' is for AssetMapper, 'build/' for Webpack Encore.
35+
# (Note: no regex delimiters needed; Symfony adds `{}` automatically.)
36+
pattern: ^/(_profiler|_wdt|assets|build)/
3537
security: false
3638
main:
3739
lazy: true

0 commit comments

Comments
 (0)