8000 minor #7928 Correct default firewall name on Security docs (eibt) · symfony/symfony-docs@08d715e · GitHub
[go: up one dir, main page]

Skip to content

Commit 08d715e

Browse files
committed
minor #7928 Correct default firewall name on Security docs (eibt)
This PR was squashed before being merged into the 2.7 branch (closes #7928). Discussion ---------- Correct default firewall name on Security docs - Change firewall name from "default" to "main" Commits ------- 8650986 Correct default firewall name on Security docs
2 parents 5aba9a6 + 8650986 commit 08d715e

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

security.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ configuration looks like this:
4848
pattern: ^/(_(profiler|wdt)|css|images|js)/
4949
security: false
5050
51-
default:
51+
main:
5252
anonymous: ~
5353
5454
.. code-block:: xml
@@ -70,7 +70,7 @@ configuration looks like this:
7070
pattern="^/(_(profiler|wdt)|css|images|js)/"
7171
security="false" />
7272
73-
<firewall name="default">
73+
<firewall name="main">
7474
<anonymous />
7575
</firewall>
7676
</config>
@@ -90,7 +90,7 @@ configuration looks like this:
9090
'pattern' => '^/(_(profiler|wdt)|css|images|js)/',
9191
'security' => false,
9292
),
93-
'default' => array(
93+
'main' => array(
9494
'anonymous' => null,
9595
),
9696
),
@@ -106,7 +106,7 @@ by your security.
106106
You can also match a request against other details of the request (e.g. host). For more
107107
information and examples read :doc:`/security/firewall_restriction`.
108108

109-
All other URLs will be handled by the ``default`` firewall (no ``pattern``
109+
All other URLs will be handled by the ``main`` firewall (no ``pattern``
110110
key means it matches *all* URLs). You can think of the firewall like your
111111
security system, and so it usually makes sense to have just one main firewall.
112112
But this does *not* mean that every URL requires authentication - the ``anonymous``
@@ -144,7 +144,7 @@ To activate this, add the ``http_basic`` key under your firewall:
144144
145145
firewalls:
146146
# ...
147-
default:
147+
main:
148148
anonymous: ~
149149
http_basic: ~
150150
@@ -161,7 +161,7 @@ To activate this, add the ``http_basic`` key under your firewall:
161161
<config>
162162
<!-- ... -->
163163
164-
<firewall name="default">
164+
<firewall name="main">
165165
<anonymous />
166166
<http-basic />
167167
</firewall>
@@ -175,7 +175,7 @@ To activate this, add the ``http_basic`` key under your firewall:
175175
// ...
176176
'firewalls' => array(
177177
// ...
178-
'default' => array(
178+
'main' => array(
179179
'anonymous' => null,
180180
'http_basic' => null,
181181
),
@@ -216,7 +216,7 @@ user to be logged in to access this URL:
216216
# ...
217217
firewalls:
218218
# ...
219-
default:
219+
main:
220220
# ...
221221
222222
access_control:
@@ -236,7 +236,7 @@ user to be logged in to access this URL:
236236
<config>
237237
<!-- ... -->
238238
239-
<firewall name="default">
239+
<firewall name="main">
240240
<!-- ... -->
241241
</firewall>
242242
@@ -252,7 +252,7 @@ user to be logged in to access this URL:
252252
// ...
253253
'firewalls' => array(
254254
// ...
255-
'default' => array(
255+
'main' => array(
256256
// ...
257257
),
258258
),
@@ -707,7 +707,7 @@ URL pattern. You saw this earlier, where anything matching the regular expressio
707707
708708
firewalls:
709709
# ...
710-
default:
710+
main:
711711
# ...
712712
713713
access_control:
@@ -727,7 +727,7 @@ URL pattern. You saw this earlier, where anything matching the regular expressio
727727
<config>
728728
<!-- ... -->
729729
730-
<firewall name="default">
730+
<firewall name="main">
731731
<!-- ... -->
732732
</firewall>
733733
@@ -744,7 +744,7 @@ URL pattern. You saw this earlier, where anything matching the regular expressio
744744
745745
'firewalls' => array(
746746
// ...
747-
'default' => array(
747+
'main' => array(
748748
// ...
749749
),
750750
),

0 commit comments

Comments
 (0)
0