@@ -670,7 +670,7 @@ You can define as many URL patterns as you need - each is a regular expression.
670
670
671
671
.. code-block :: yaml
672
672
673
- # app/config/config .yml
673
+ # app/config/security .yml
674
674
security :
675
675
# ...
676
676
access_control :
@@ -679,7 +679,7 @@ You can define as many URL patterns as you need - each is a regular expression.
679
679
680
680
.. code-block :: xml
681
681
682
- <!-- app/config/config .xml -->
682
+ <!-- app/config/security .xml -->
683
683
<config >
684
684
<!-- ... -->
685
685
<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.
688
688
689
689
.. code-block :: php
690
690
691
- // app/config/config .php
691
+ // app/config/security .php
692
692
$container->loadFromExtension('security', array(
693
693
// ...
694
694
'access_control' => array(
@@ -887,7 +887,7 @@ In fact, you've seen this already in the example in this chapter.
887
887
888
888
.. code-block :: yaml
889
889
890
- # app/config/config .yml
890
+ # app/config/security .yml
891
891
security :
892
892
# ...
893
893
providers :
@@ -898,7 +898,7 @@ In fact, you've seen this already in the example in this chapter.
898
898
899
899
.. code-block :: xml
900
900
901
- <!-- app/config/config .xml -->
901
+ <!-- app/config/security .xml -->
902
902
<config >
903
903
<!-- ... -->
904
904
<provider name =" default_provider" >
@@ -909,7 +909,7 @@ In fact, you've seen this already in the example in this chapter.
909
909
910
910
.. code-block :: php
911
911
912
- // app/config/config .php
912
+ // app/config/security .php
913
913
$container->loadFromExtension('security', array(
914
914
// ...
915
915
'providers' => array(
@@ -1056,7 +1056,7 @@ do the following:
1056
1056
1057
1057
.. code-block :: yaml
1058
1058
1059
- # app/config/config .yml
1059
+ # app/config/security .yml
1060
1060
security :
1061
1061
# ...
1062
1062
providers :
@@ -1073,7 +1073,7 @@ do the following:
1073
1073
1074
1074
.. code-block :: xml
1075
1075
1076
- <!-- app/config/config .xml -->
1076
+ <!-- app/config/security .xml -->
1077
1077
<config >
1078
1078
<!-- ... -->
1079
1079
<provider name =" in_memory" >
@@ -1086,7 +1086,7 @@ do the following:
1086
1086
1087
1087
.. code-block :: php
1088
1088
1089
- // app/config/config .php
1089
+ // app/config/security .php
1090
1090
$container->loadFromExtension('security', array(
1091
1091
// ...
1092
1092
'providers' => array(
@@ -1121,7 +1121,7 @@ configure the encoder for that user:
1121
1121
1122
1122
.. code-block :: yaml
1123
1123
1124
- # app/config/config .yml
1124
+ # app/config/security .yml
1125
1125
security :
1126
1126
# ...
1127
1127
@@ -1130,7 +1130,7 @@ configure the encoder for that user:
1130
1130
1131
1131
.. code-block :: xml
1132
1132
1133
- <!-- app/config/config .xml -->
1133
+ <!-- app/config/security .xml -->
1134
1134
<config >
1135
1135
<!-- ... -->
1136
1136
@@ -1139,7 +1139,7 @@ configure the encoder for that user:
1139
1139
1140
1140
.. code-block :: php
1141
1141
1142
- // app/config/config .php
1142
+ // app/config/security .php
1143
1143
$container->loadFromExtension('security', array(
1144
1144
// ...
1145
1145
@@ -1216,7 +1216,7 @@ a new provider that chains the two together:
1216
1216
1217
1217
.. code-block :: xml
1218
1218
1219
- <!-- app/config/config .xml -->
1219
+ <!-- app/config/security .xml -->
1220
1220
<config >
1221
1221
<provider name =" chain_provider" >
1222
1222
<provider >in_memory</provider >
@@ -1232,7 +1232,7 @@ a new provider that chains the two together:
1232
1232
1233
1233
.. code-block :: php
1234
1234
1235
- // app/config/config .php
1235
+ // app/config/security .php
1236
1236
$container->loadFromExtension('security', array(
1237
1237
'providers' => array(
1238
1238
'chain_provider' => array(
@@ -1273,7 +1273,7 @@ the user from both the ``in_memory`` and ``user_db`` providers.
1273
1273
1274
1274
.. code-block :: xml
1275
1275
1276
- <!-- app/config/config .xml -->
1276
+ <!-- app/config/security .xml -->
1277
1277
<config >
1278
1278
<provider name ==" main_provider" >
1279
1279
<user name =" foo" password =" test" />
@@ -1283,7 +1283,7 @@ the user from both the ``in_memory`` and ``user_db`` providers.
1283
1283
1284
1284
.. code-block :: php
1285
1285
1286
- // app/config/config .php
1286
+ // app/config/security .php
1287
1287
$container->loadFromExtension('security', array(
1288
1288
'providers' => array(
1289
1289
'main_provider' => array(
@@ -1303,7 +1303,7 @@ the first provider is always used:
1303
1303
1304
1304
.. code-block :: yaml
1305
1305
1306
- # app/config/config .yml
1306
+ # app/config/security .yml
1307
1307
security :
1308
1308
firewalls :
1309
1309
secured_area :
@@ -1316,7 +1316,7 @@ the first provider is always used:
1316
1316
1317
1317
.. code-block :: xml
1318
1318
1319
- <!-- app/config/config .xml -->
1319
+ <!-- app/config/security .xml -->
1320
1320
<config >
1321
1321
<firewall name =" secured_area" pattern =" ^/" provider =" user_db" >
1322
1322
<!-- ... -->
@@ -1327,7 +1327,7 @@ the first provider is always used:
1327
1327
1328
1328
.. code-block :: php
1329
1329
1330
- // app/config/config .php
1330
+ // app/config/security .php
1331
1331
$container->loadFromExtension('security', array(
1332
1332
'firewalls' => array(
1333
1333
'secured_area' => array(
@@ -1418,7 +1418,7 @@ the firewall can handle this automatically for you when you activate the
1418
1418
1419
1419
.. code-block :: yaml
1420
1420
1421
- # app/config/config .yml
1421
+ # app/config/security .yml
1422
1422
security :
1423
1423
firewalls :
1424
1424
secured_area :
@@ -1430,7 +1430,7 @@ the firewall can handle this automatically for you when you activate the
1430
1430
1431
1431
.. code-block :: xml
1432
1432
1433
- <!-- app/config/config .xml -->
1433
+ <!-- app/config/security .xml -->
1434
1434
<config >
1435
1435
<firewall name =" secured_area" pattern =" ^/" >
1436
1436
<!-- ... -->
@@ -1441,7 +1441,7 @@ the firewall can handle this automatically for you when you activate the
1441
1441
1442
1442
.. code-block :: php
1443
1443
1444
- // app/config/config .php
1444
+ // app/config/security .php
1445
1445
$container->loadFromExtension('security', array(
1446
1446
'firewalls' => array(
1447
1447
'secured_area' => array(
0 commit comments