10000 Correct default firewall name on Security docs by sdknjg8zxq · Pull Request #7928 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Correct default firewall name on Security docs #7928

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ configuration looks like this:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false

default:
main:
anonymous: ~

.. code-block:: xml
Expand All @@ -70,7 +70,7 @@ configuration looks like this:
pattern="^/(_(profiler|wdt)|css|images|js)/"
security="false" />

<firewall name="default">
<firewall name="main">
<anonymous />
</firewall>
</config>
Expand All @@ -90,7 +90,7 @@ configuration looks like this:
'pattern' => '^/(_(profiler|wdt)|css|images|js)/',
'security' => false,
),
'default' => array(
'main' => array(
'anonymous' => null,
),
),
Expand All @@ -106,7 +106,7 @@ by your security.
You can also match a request against other details of the request (e.g. host). For more
information and examples read :doc:`/security/firewall_restriction`.

All other URLs will be handled by the ``default`` firewall (no ``pattern``
All other URLs will be handled by the ``main`` firewall (no ``pattern``
key means it matches *all* URLs). You can think of the firewall like your
security system, and so it usually makes sense to have just one main firewall.
But this does *not* mean that every URL requires authentication - the ``anonymous``
Expand Down Expand Up @@ -144,7 +144,7 @@ To activate this, add the ``http_basic`` key under your firewall:

firewalls:
# ...
default:
main:
anonymous: ~
http_basic: ~

Expand All @@ -161,7 +161,7 @@ To activate this, add the ``http_basic`` key under your firewall:
<config>
<!-- ... -->

<firewall name="default">
<firewall name="main">
<anonymous />
<http-basic />
</firewall>
Expand All @@ -175,7 +175,7 @@ To activate this, add the ``http_basic`` key under your firewall:
// ...
'firewalls' => array(
// ...
'default' => array(
'main' => array(
'anonymous' => null,
'http_basic' => null,
),
Expand Down Expand Up @@ -216,7 +216,7 @@ user to be logged in to access this URL:
# ...
firewalls:
# ...
default:
main:
# ...

access_control:
Expand All @@ -236,7 +236,7 @@ user to be logged in to access this URL:
<config>
<!-- ... -->

<firewall name="default">
<firewall name="main">
<!-- ... -->
</firewall>

Expand All @@ -252,7 +252,7 @@ user to be logged in to access this URL:
// ...
'firewalls' => array(
// ...
'default' => array(
'main' => array(
// ...
),
),
Expand Down Expand Up @@ -707,7 +707,7 @@ URL pattern. You saw this earlier, where anything matching the regular expressio

firewalls:
# ...
default:
main:
# ...

access_control:
Expand All @@ -727,7 +727,7 @@ URL pattern. You saw this earlier, where anything matching the regular expressio
<config>
<!-- ... -->

<firewall name="default">
<firewall name="main">
<!-- ... -->
</firewall>

Expand All @@ -744,7 +744,7 @@ URL pattern. You saw this earlier, where anything matching the regular expressio

'firewalls' => array(
// ...
'default' => array(
'main' => array(
// ...
),
),
Expand Down
0