Skip to content

Commit 8e2d950

Browse files
committed
[Security] Added a missing comment in the firewall config example
1 parent 8c14b05 commit 8e2d950

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

security.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,7 @@ will be able to authenticate (e.g. login form, API token, etc).
513513
dev:
514514
pattern: ^/(_(profiler|wdt)|css|images|js)/
515515
security: false
516+
# a firewall with no pattern should be defined last because it will match all requests
516517
main:
517518
lazy: true
518519
provider: users_in_memory
@@ -544,6 +545,7 @@ will be able to authenticate (e.g. login form, API token, etc).
544545
pattern="^/(_(profiler|wdt)|css|images|js)/"
545546
security="false"/>
546547
548+
<!-- a firewall with no pattern should be defined last because it will match all requests -->
547549
<firewall name="main"
548550
lazy="true"/>
549551
@@ -570,6 +572,7 @@ will be able to authenticate (e.g. login form, API token, etc).
570572
->security(false)
571573
;
572574
575+
// a firewall with no pattern should be defined last because it will match all requests
573576
$security->firewall('main')
574577
->lazy(true)
575578

0 commit comments

Comments
 (0)