Skip to content

Commit 5c37d44

Browse files
committed
change occurences of config.[yml,xml,php] by security.[yml,xml,php] for consistency (against 2.0)
1 parent 7e255b1 commit 5c37d44

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

book/security.rst

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ You can define as many URL patterns as you need - each is a regular expression.
670670

671671
.. code-block:: yaml
672672
673-
# app/config/config.yml
673+
# app/config/security.yml
674674
security:
675675
# ...
676676
access_control:
@@ -679,7 +679,7 @@ You can define as many URL patterns as you need - each is a regular expression.
679679
680680
.. code-block:: xml
681681
682-
<!-- app/config/config.xml -->
682+
<!-- app/config/security.xml -->
683683
<config>
684684
<!-- ... -->
685685
<rule path="^/admin/users" role="ROLE_SUPER_ADMIN" />
@@ -688,7 +688,7 @@ You can define as many URL patterns as you need - each is a regular expression.
688688
689689
.. code-block:: php
690690
691-
// app/config/config.php
691+
// app/config/security.php
692692
$container->loadFromExtension('security', array(
693693
// ...
694694
'access_control' => array(
@@ -887,7 +887,7 @@ In fact, you've seen this already in the example in this chapter.
887887

888888
.. code-block:: yaml
889889
890-
# app/config/config.yml
890+
# app/config/security.yml
891891
security:
892892
# ...
893893
providers:
@@ -898,7 +898,7 @@ In fact, you've seen this already in the example in this chapter.
898898
899899
.. code-block:: xml
900900
901-
<!-- app/config/config.xml -->
901+
<!-- app/config/security.xml -->
902902
<config>
903903
<!-- ... -->
904904
<provider name="default_provider">
@@ -909,7 +909,7 @@ In fact, you've seen this already in the example in this chapter.
909909
910910
.. code-block:: php
911911
912-
// app/config/config.php
912+
// app/config/security.php
913913
$container->loadFromExtension('security', array(
914914
// ...
915915
'providers' => array(
@@ -1056,7 +1056,7 @@ do the following:
10561056

10571057
.. code-block:: yaml
10581058
1059-
# app/config/config.yml
1059+
# app/config/security.yml
10601060
security:
10611061
# ...
10621062
providers:
@@ -1073,7 +1073,7 @@ do the following:
10731073
10741074
.. code-block:: xml
10751075
1076-
<!-- app/config/config.xml -->
1076+
<!-- app/config/security.xml -->
10771077
<config>
10781078
<!-- ... -->
10791079
<provider name="in_memory">
@@ -1086,7 +1086,7 @@ do the following:
10861086
10871087
.. code-block:: php
10881088
1089-
// app/config/config.php
1089+
// app/config/security.php
10901090
$container->loadFromExtension('security', array(
10911091
// ...
10921092
'providers' => array(
@@ -1121,7 +1121,7 @@ configure the encoder for that user:
11211121

11221122
.. code-block:: yaml
11231123
1124-
# app/config/config.yml
1124+
# app/config/security.yml
11251125
security:
11261126
# ...
11271127
@@ -1130,7 +1130,7 @@ configure the encoder for that user:
11301130
11311131
.. code-block:: xml
11321132
1133-
<!-- app/config/config.xml -->
1133+
<!-- app/config/security.xml -->
11341134
<config>
11351135
<!-- ... -->
11361136
@@ -1139,7 +1139,7 @@ configure the encoder for that user:
11391139
11401140
.. code-block:: php
11411141
1142-
// app/config/config.php
1142+
// app/config/security.php
11431143
$container->loadFromExtension('security', array(
11441144
// ...
11451145
@@ -1216,7 +1216,7 @@ a new provider that chains the two together:
12161216
12171217
.. code-block:: xml
12181218
1219-
<!-- app/config/config.xml -->
1219+
<!-- app/config/security.xml -->
12201220
<config>
12211221
<provider name="chain_provider">
12221222
<provider>in_memory</provider>
@@ -1232,7 +1232,7 @@ a new provider that chains the two together:
12321232
12331233
.. code-block:: php
12341234
1235-
// app/config/config.php
1235+
// app/config/security.php
12361236
$container->loadFromExtension('security', array(
12371237
'providers' => array(
12381238
'chain_provider' => array(
@@ -1273,7 +1273,7 @@ the user from both the ``in_memory`` and ``user_db`` providers.
12731273
12741274
.. code-block:: xml
12751275
1276-
<!-- app/config/config.xml -->
1276+
<!-- app/config/security.xml -->
12771277
<config>
12781278
<provider name=="main_provider">
12791279
<user name="foo" password="test" />
@@ -1283,7 +1283,7 @@ the user from both the ``in_memory`` and ``user_db`` providers.
12831283
12841284
.. code-block:: php
12851285
1286-
// app/config/config.php
1286+
// app/config/security.php
12871287
$container->loadFromExtension('security', array(
12881288
'providers' => array(
12891289
'main_provider' => array(
@@ -1303,7 +1303,7 @@ the first provider is always used:
13031303

13041304
.. code-block:: yaml
13051305
1306-
# app/config/config.yml
1306+
# app/config/security.yml
13071307
security:
13081308
firewalls:
13091309
secured_area:
@@ -1316,7 +1316,7 @@ the first provider is always used:
13161316
13171317
.. code-block:: xml
13181318
1319-
<!-- app/config/config.xml -->
1319+
<!-- app/config/security.xml -->
13201320
<config>
13211321
<firewall name="secured_area" pattern="^/" provider="user_db">
13221322
<!-- ... -->
@@ -1327,7 +1327,7 @@ the first provider is always used:
13271327
13281328
.. code-block:: php
13291329
1330-
// app/config/config.php
1330+
// app/config/security.php
13311331
$container->loadFromExtension('security', array(
13321332
'firewalls' => array(
13331333
'secured_area' => array(
@@ -1418,7 +1418,7 @@ the firewall can handle this automatically for you when you activate the
14181418

14191419
.. code-block:: yaml
14201420
1421-
# app/config/config.yml
1421+
# app/config/security.yml
14221422
security:
14231423
firewalls:
14241424
secured_area:
@@ -1430,7 +1430,7 @@ the firewall can handle this automatically for you when you activate the
14301430
14311431
.. code-block:: xml
14321432
1433-
<!-- app/config/config.xml -->
1433+
<!-- app/config/security.xml -->
14341434
<config>
14351435
<firewall name="secured_area" pattern="^/">
14361436
<!-- ... -->
@@ -1441,7 +1441,7 @@ the firewall can handle this automatically for you when you activate the
14411441
14421442
.. code-block:: php
14431443
1444-
// app/config/config.php
1444+
// app/config/security.php
14451445
$container->loadFromExtension('security', array(
14461446
'firewalls' => array(
14471447
'secured_area' => array(

0 commit comments

Comments
 (0)