8000 Always use "main" as the default firewall name (to match Symfony Stan… · symfony/symfony-docs@4ecfd2b · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ecfd2b

Browse files
committed
Always use "main" as the default firewall name (to match Symfony Standard Edition)
1 parent ea2503c commit 4ecfd2b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

cookbook/security/entity_provider.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ the username and then check the password (more on passwords in a moment):
216216
# manager_name: customer
217217
218218
firewalls:
219-
default:
219+
main:
220220
pattern: ^/
221221
http_basic: ~
222222
provider: our_db_provider
@@ -244,7 +244,7 @@ the username and then check the password (more on passwords in a moment):
244244
<entity class="AppBundle:User" property="username" />
245245
</provider>
246246
247-
<firewall name="default" pattern="^/" provider="our_db_provider">
247+
<firewall name="main" pattern="^/" provider="our_db_provider">
248248
<http-basic />
249249
</firewall>
250250
@@ -273,7 +273,7 @@ the username and then check the password (more on passwords in a moment):
273273
),
274274
),
275275
'firewalls' => array(
276-
'default' => array(
276+
'main' => array(
277277
'pattern' => '^/',
278278
'http_basic' => null,
279279
'provider' => 'our_db_provider',

cookbook/security/form_login_setup.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ First, enable form login under your firewall:
2727
# ...
2828
2929
firewalls:
30-
default:
30+
main:
3131
anonymous: ~
3232
http_basic: ~
3333
form_login:
@@ -45,7 +45,7 @@ First, enable form login under your firewall:
4545
http://symfony.com/schema/dic/services/services-1.0.xsd">
4646
4747
<config>
48-
<firewall name="default">
48+
<firewall name="main">
4949
<anonymous />
5050
<http-basic />
5151
<form-login login-path="/login" check-path="/login_check" />
@@ -58,7 +58,7 @@ First, enable form login under your firewall:
5858
// app/config/security.php
5959
$container->loadFromExtension('security', array(
6060
'firewalls' => array(
61-
'default' => array(
61+
'main' => array(
6262
'anonymous' => null,
6363
'http_basic' => null,
6464
'form_login' => array(

cookbook/security/remember_me.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
1919
# ...
2020
2121
firewalls:
22-
default:
22+
main:
2323
# ...
2424
remember_me:
2525
key: "%secret%"
@@ -43,7 +43,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
4343
<config>
4444
<!-- ... -->
4545
46-
<firewall name="default">
46+
<firewall name="main">
4747
<!-- ... -->
4848
4949
<!-- 604800 is 1 week in seconds -->
@@ -65,7 +65,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
6565
// ...
6666
6767
'firewalls' => array(
68-
'default' => array(
68+
'main' => array(
6969
// ...
7070
'remember_me' => array(
7171
'key' => '%secret%',

0 commit comments

Comments
 (0)
0