Skip to content

Commit 0d4b186

Browse files
author
hhamon
committed
[security] fixed typo
1 parent 4fa8b7e commit 0d4b186

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎book/security/authentication.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ basic authentication:
3737
firewalls:
3838
backend:
3939
pattern: /admin/.*
40-
form-login: true
40+
form_login: true
4141
logout: true
4242
api:
4343
pattern: /api/.*
@@ -797,7 +797,7 @@ firewall, or just for an authentication mechanism:
797797
backend:
798798
pattern: /admin/.*
799799
x509: { provider: certificate }
800-
form-login: { provider: default }
800+
form_login: { provider: default }
801801
logout: true
802802
api:
803803
provider: default

‎book/security/overview.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ your main configuration file; here is a typical configuration:
4444
firewalls:
4545
main:
4646
pattern: /.*
47-
http-basic: true
47+
http_basic: true
4848
logout: true
4949
5050
access_control:
@@ -84,7 +84,7 @@ your main configuration file; here is a typical configuration:
8484
)),
8585
),
8686
'firewalls' => array(
87-
'main' => array('pattern' => '/.*', 'http-basic' => true, 'logout' => true),
87+
'main' => array('pattern' => '/.*', 'http_basic' => true, 'logout' => true),
8888
),
8989
'access_control' => array(
9090
array('path' => '/.*', 'role' => 'ROLE_USER'),
@@ -161,7 +161,7 @@ Here is how you can secure your application with HTTP basic authentication:
161161
security:
162162
firewalls:
163163
main:
164-
http-basic: true
164+
http_basic: true
165165
166166
.. code-block:: xml
167167
@@ -177,7 +177,7 @@ Here is how you can secure your application with HTTP basic authentication:
177177
// app/config/security.php
178178
$container->loadFromExtension('security', array(
179179
'firewalls' => array(
180-
'main' => array('http-basic' => true),
180+
'main' => array('http_basic' => true),
181181
),
182182
));
183183
@@ -193,7 +193,7 @@ mechanisms for different parts of the application:
193193
firewalls:
194194
backend:
195195
pattern: /admin/.*
196-
http-basic: true
196+
http_basic: true
197197
public:
198198
pattern: /.*
199199
security: false

0 commit comments

Comments
 (0)