Skip to content

Always use "main" as the default firewall name (to match Symfony Standard Edition) #5889

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

Merged
merged 1 commit into from
Nov 28, 2015
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions cookbook/security/entity_provider.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ the username and then check the password (more on passwords in a moment):
# manager_name: customer

firewalls:
default:
main:
pattern: ^/
http_basic: ~
provider: our_db_provider
Expand Down Expand Up @@ -244,7 +244,7 @@ the username and then check the password (more on passwords in a moment):
<entity class="AppBundle:User" property="username" />
</provider>

<firewall name="default" pattern="^/" provider="our_db_provider">
<firewall name="main" pattern="^/" provider="our_db_provider">
<http-basic />
</firewall>

Expand Down Expand Up @@ -273,7 +273,7 @@ the username and then check the password (more on passwords in a moment):
),
),
'firewalls' => array(
'default' => array(
'main' => array(
'pattern' => '^/',
'http_basic' => null,
'provider' => 'our_db_provider',
Expand Down
6 changes: 3 additions & 3 deletions cookbook/security/form_login_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ First, enable form login under your firewall:
# ...

firewalls:
default:
main:
anonymous: ~
http_basic: ~
form_login:
Expand All @@ -45,7 +45,7 @@ First, enable form login under your firewall:
http://symfony.com/schema/dic/services/services-1.0.xsd">

<config>
<firewall name="default">
<firewall name="main">
<anonymous />
<http-basic />
<form-login login-path="/login" check-path="/login_check" />
Expand All @@ -58,7 +58,7 @@ First, enable form login under your firewall:
// app/config/security.php
$container->loadFromExtension('security', array(
'firewalls' => array(
'default' => array(
'main' => array(
'anonymous' => null,
'http_basic' => null,
'form_login' => array(
Expand Down
6 changes: 3 additions & 3 deletions cookbook/security/remember_me.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
# ...

firewalls:
default:
main:
# ...
remember_me:
key: "%secret%"
Expand All @@ -43,7 +43,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
<config>
<!-- ... -->

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

<!-- 604800 is 1 week in seconds -->
Expand All @@ -65,7 +65,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option:
// ...

'firewalls' => array(
'default' => array(
'main' => array(
// ...
'remember_me' => array(
'key' => '%secret%',
Expand Down