Skip to content

Commit 8c14b05

Browse files
committed
Reword
1 parent 03a7e5d commit 8c14b05

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

components/http_kernel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ as possible to the client (e.g. sending emails).
492492
.. _component-http-kernel-kernel-exception:
493493

494494
9) Handling Exceptions: the ``kernel.exception`` Event
495-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
495+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
496496

497497
**Typical Purposes**: Handle some type of exception and create an appropriate
498498
``Response`` to return for the exception

security.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,11 +508,11 @@ will be able to authenticate (e.g. login form, API token, etc).
508508
security:
509509
# ...
510510
firewalls:
511+
# the order in which firewalls are defined is very important, as the
512+
# request will be handled by the first firewall whose pattern matches
511513
dev:
512514
pattern: ^/(_(profiler|wdt)|css|images|js)/
513515
security: false
514-
# add a new firewall here with a specific pattern, the first firewall matched by pattern will be
515-
# executed, if a firewall has no pattern it will match all requests and the others will be skipped
516516
main:
517517
lazy: true
518518
provider: users_in_memory
@@ -537,6 +537,9 @@ will be able to authenticate (e.g. login form, API token, etc).
537537
538538
<config>
539539
<!-- ... -->
540+
541+
<!-- the order in which firewalls are defined is very important, as the
542+
request will be handled by the first firewall whose pattern matches -->
540543
<firewall name="dev"
541544
pattern="^/(_(profiler|wdt)|css|images|js)/"
542545
security="false"/>
@@ -559,6 +562,9 @@ will be able to authenticate (e.g. login form, API token, etc).
559562
560563
return static function (SecurityConfig $security) {
561564
// ...
565+
566+
// the order in which firewalls are defined is very important, as the
567+
// request will be handled by the first firewall whose pattern matches
562568
$security->firewall('dev')
563569
->pattern('^/(_(profiler|wdt)|css|images|js)/')
564570
->security(false)

0 commit comments

Comments
 (0)