Skip to content

Commit 669c303

Browse files
committed
minor #21556 [Security] Updating for new recipe (ThomasLandauer)
This PR was merged into the 7.4 branch. Discussion ---------- [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) Commits ------- a7c4193 [Security]: Updating for new recipe
2 parents c805014 + a7c4193 commit 669c303

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)