@@ -25,7 +25,7 @@ basic authentication:
25
25
26
26
.. code-block :: yaml
27
27
28
- # app/config/config .yml
28
+ # app/config/security .yml
29
29
security.config :
30
30
firewalls :
31
31
backend :
@@ -42,7 +42,7 @@ basic authentication:
42
42
43
43
.. code-block :: xml
44
44
45
- <!-- app/config/config .xml -->
45
+ <!-- app/config/security .xml -->
46
46
<config >
47
47
<firewall pattern =" /admin/.*" >
48
48
<form-login />
@@ -56,7 +56,7 @@ basic authentication:
56
56
57
57
.. code-block :: php
58
58
59
- // app/config/config .php
59
+ // app/config/security .php
60
60
$container->loadFromExtension('security', 'config', array(
61
61
'firewalls' => array(
62
62
'backend' => array('pattern' => '/admin/.*', 'http_basic' => true, 'logout' => true),
@@ -99,7 +99,7 @@ You can configure a firewall to use more than one authentication mechanisms:
99
99
100
100
.. code-block :: yaml
101
101
102
- # app/config/config .yml
102
+ # app/config/security .yml
103
103
security.config :
104
104
firewalls :
105
105
backend :
@@ -111,7 +111,7 @@ You can configure a firewall to use more than one authentication mechanisms:
111
111
112
112
.. code-block :: xml
113
113
114
- <!-- app/config/config .xml -->
114
+ <!-- app/config/security .xml -->
115
115
<config >
116
116
<firewall pattern =" /admin/.*" >
117
117
<x509 />
@@ -123,7 +123,7 @@ You can configure a firewall to use more than one authentication mechanisms:
123
123
124
124
.. code-block :: php
125
125
126
- // app/config/config .php
126
+ // app/config/security .php
127
127
$container->loadFromExtension('security', 'config', array(
128
128
'firewalls' => array(
129
129
'backend' => array(
@@ -156,15 +156,15 @@ Configuring HTTP basic authentication is as simple as it can get:
156
156
157
157
.. code-block :: yaml
158
158
159
- # app/config/config .yml
159
+ # app/config/security .yml
160
160
security.config :
161
161
firewalls :
162
162
main :
163
163
http_basic : true
164
164
165
165
.. code-block :: xml
166
166
167
- <!-- app/config/config .xml -->
167
+ <!-- app/config/security .xml -->
168
168
<config >
169
169
<firewall >
170
170
<http-basic />
@@ -173,7 +173,7 @@ Configuring HTTP basic authentication is as simple as it can get:
173
173
174
174
.. code-block :: php
175
175
176
- // app/config/config .php
176
+ // app/config/security .php
177
177
$container->loadFromExtension('security', 'config', array(
178
178
'firewalls' => array(
179
179
'main' => array('http_basic' => true),
@@ -189,15 +189,15 @@ Configuring HTTP digest authentication is as simple as it can get:
189
189
190
190
.. code-block :: yaml
191
191
192
- # app/config/config .yml
192
+ # app/config/security .yml
193
193
security.config :
194
194
firewalls :
195
195
main :
196
196
http_digest : true
197
197
198
198
.. code-block :: xml
199
199
200
- <!-- app/config/config .xml -->
200
+ <!-- app/config/security .xml -->
201
201
<config >
202
202
<firewall >
203
203
<http-digest />
@@ -206,7 +206,7 @@ Configuring HTTP digest authentication is as simple as it can get:
206
206
207
207
.. code-block :: php
208
208
209
- // app/config/config .php
209
+ // app/config/security .php
210
210
$container->loadFromExtension('security', 'config', array(
211
211
'firewalls' => array(
212
212
'main' => array('http_digest' => true),
@@ -227,15 +227,15 @@ nowadays:
227
227
228
228
.. code-block :: yaml
229
229
230
- # app/config/config .yml
230
+ # app/config/security .yml
231
231
security.config :
232
232
firewalls :
233
233
main :
234
234
form_login : true
235
235
236
236
.. code-block :: xml
237
237
238
- <!-- app/config/config .xml -->
238
+ <!-- app/config/security .xml -->
239
239
<config >
240
240
<firewall >
241
241
<form-login />
@@ -244,7 +244,7 @@ nowadays:
244
244
245
245
.. code-block :: php
246
246
247
- // app/config/config .php
247
+ // app/config/security .php
248
248
$container->loadFromExtension('security', 'config', array(
249
249
'firewalls' => array(
250
250
'main' => array('form_login' => true),
@@ -364,7 +364,7 @@ configuration example that shows how to override them all:
364
364
365
365
.. code-block :: yaml
366
366
367
- # app/config/config .yml
367
+ # app/config/security .yml
368
368
security.config :
369
369
firewalls :
370
370
main :
@@ -379,7 +379,7 @@ configuration example that shows how to override them all:
379
379
380
380
.. code-block :: xml
381
381
382
- <!-- app/config/config .xml -->
382
+ <!-- app/config/security .xml -->
383
383
<config >
384
384
<firewall >
385
385
<form-login
@@ -396,7 +396,7 @@ configuration example that shows how to override them all:
396
396
397
397
.. code-block :: php
398
398
399
- // app/config/config .php
399
+ // app/config/security .php
400
400
$container->loadFromExtension('security', 'config', array(
401
401
'firewalls' => array(
402
402
'main' => array('form_login' => array(
@@ -420,15 +420,15 @@ X.509 certificates are a great way to authenticate users if you know them all:
420
420
421
421
.. code-block :: yaml
422
422
423
- # app/config/config .yml
423
+ # app/config/security .yml
424
424
security.config :
425
425
firewalls :
426
426
main :
427
427
x509 : true
428
428
429
429
.. code-block :: xml
430
430
431
- <!-- app/config/config .xml -->
431
+ <!-- app/config/security .xml -->
432
432
<config >
433
433
<firewall >
434
434
<x509 />
@@ -437,7 +437,7 @@ X.509 certificates are a great way to authenticate users if you know them all:
437
437
438
438
.. code-block :: php
439
439
440
- // app/config/config .php
440
+ // app/config/security .php
441
441
$container->loadFromExtension('security', 'config', array(
442
442
'firewalls' => array(
443
443
'main' => array('x509' => true),
@@ -491,15 +491,15 @@ access a resource restricted by an access control rule:
491
491
492
492
.. code-block :: yaml
493
493
494
- # app/config/config .yml
494
+ # app/config/security .yml
495
495
security.config :
496
496
firewalls :
497
497
main :
498
498
anonymous : true
499
499
500
500
.. code-block :: xml
501
501
502
- <!-- app/config/config .xml -->
502
+ <!-- app/config/security .xml -->
503
503
<config >
504
504
<firewall >
505
505
<anonymous />
@@ -508,7 +508,7 @@ access a resource restricted by an access control rule:
508
508
509
509
.. code-block :: php
510
510
511
- // app/config/config .php
511
+ // app/config/security .php
512
512
$container->loadFromExtension('security', 'config', array(
513
513
'firewalls' => array(
514
514
'main' => array('anonymous' => true),
@@ -539,7 +539,7 @@ cookie will be ever created by Symfony2):
539
539
540
540
.. code-block :: yaml
541
541
542
- # app/config/config .yml
542
+ # app/config/security .yml
543
543
security.config :
544
544
firewalls :
545
545
main :
@@ -548,7 +548,7 @@ cookie will be ever created by Symfony2):
548
548
549
549
.. code-block :: xml
550
550
551
- <!-- app/config/config .xml -->
551
+ <!-- app/config/security .xml -->
552
552
<config >
553
553
<firewall stateless =" true" >
554
554
<http-basic />
@@ -557,7 +557,7 @@ cookie will be ever created by Symfony2):
557
557
558
558
.. code-block :: php
559
559
560
- // app/config/config .php
560
+ // app/config/security .php
561
561
$container->loadFromExtension('security', 'config', array(
562
562
'firewalls' => array(
563
563
'main' => array('http_basic' => true, 'stateless' => true),
@@ -581,7 +581,7 @@ done by activating the ``switch-user`` listener:
581
581
582
582
.. code-block :: yaml
583
583
584
- # app/config/config .yml
584
+ # app/config/security .yml
585
585
security.config :
586
586
firewalls :
587
587
main :
@@ -590,7 +590,7 @@ done by activating the ``switch-user`` listener:
590
590
591
591
.. code-block :: xml
592
592
593
- <!-- app/config/config .xml -->
593
+ <!-- app/config/security .xml -->
594
594
<config >
595
595
<firewall >
596
596
<http-basic />
@@ -600,7 +600,7 @@ done by activating the ``switch-user`` listener:
600
600
601
601
.. code-block :: php
602
602
603
- // app/config/config .php
603
+ // app/config/security .php
604
604
$container->loadFromExtension('security', 'config', array(
605
605
'firewalls' => array(
606
606
'main'=> array('http_basic' => true, 'switch_user' => true),
@@ -625,7 +625,7 @@ security, also change the parameter name via the ``parameter`` setting:
625
625
626
626
.. code-block :: yaml
627
627
628
- # app/config/config .yml
628
+ # app/config/security .yml
629
629
security.config :
630
630
firewalls :
631
631
main :
@@ -634,7 +634,7 @@ security, also change the parameter name via the ``parameter`` setting:
634
634
635
635
.. code-block :: xml
636
636
637
- <!-- app/config/config .xml -->
637
+ <!-- app/config/security .xml -->
638
638
<config >
639
639
<firewall >
640
640
<http-basic />
@@ -644,7 +644,7 @@ security, also change the parameter name via the ``parameter`` setting:
644
644
645
645
.. code-block :: php
646
646
647
- // app/config/config .php
647
+ // app/config/security .php
648
648
$container->loadFromExtension('security', 'config', array(
649
649
'firewalls' => array(
650
650
'main'=> array(
@@ -664,7 +664,7 @@ listener:
664
664
665
665
.. code-block :: yaml
666
666
667
- # app/config/config .yml
667
+ # app/config/security .yml
668
668
security.config :
669
669
firewalls :
670
670
main :
@@ -673,7 +673,7 @@ listener:
673
673
674
674
.. code-block :: xml
675
675
676
- <!-- app/config/config .xml -->
676
+ <!-- app/config/security .xml -->
677
677
<config >
678
678
<firewall >
679
679
<http-basic />
@@ -683,7 +683,7 @@ listener:
683
683
684
684
.. code-block :: php
685
685
686
- // app/config/config .php
686
+ // app/config/security .php
687
687
$container->loadFromExtension('security', 'config', array(
688
688
'firewalls' => array(
689
689
'main'=> array('http_basic' => true, 'logout' => true),
@@ -698,16 +698,16 @@ are redirected to ``/``. This can be easily changed via the ``path`` and
698
698
699
699
.. code-block :: yaml
700
700
701
- # app/config/config .yml
701
+ # app/config/security .yml
702
702
security.config :
703
703
firewalls :
704
704
main :
705
705
http_basic : true
706
- logout : { path: /signout, target: signin }
706
+ logout : { path: /signout, target: / signin }
707
707
708
708
.. code-block :: xml
709
709
710
- <!-- app/config/config .xml -->
710
+ <!-- app/config/security .xml -->
711
711
<config >
712
712
<firewall >
713
713
<http-basic />
@@ -717,7 +717,7 @@ are redirected to ``/``. This can be easily changed via the ``path`` and
717
717
718
718
.. code-block :: php
719
719
720
- // app/config/config .php
720
+ // app/config/security .php
721
721
$container->loadFromExtension('security', 'config', array(
722
722
'firewalls' => array(
723
723
'main'=> array(
@@ -738,7 +738,7 @@ firewall, or just for an authentication mechanism:
738
738
739
739
.. code-block :: yaml
740
740
741
- # app/config/config .yml
741
+ # app/config/security .yml
742
742
security.config :
743
743
providers :
744
744
default :
@@ -762,7 +762,7 @@ firewall, or just for an authentication mechanism:
762
762
763
763
.. code-block :: xml
764
764
765
- <!-- app/config/config .xml -->
765
+ <!-- app/config/security .xml -->
766
766
<config >
767
767
<provider name =" default" >
768
768
<password-encoder >sha1</password-encoder >
@@ -785,7 +785,7 @@ firewall, or just for an authentication mechanism:
785
785
786
786
.. code-block :: php
787
787
788
- // app/config/config .php
788
+ // app/config/security .php
789
789
$container->loadFromExtension('security', 'config', array(
790
790
'providers' => array(
791
791
'default' => array(
0 commit comments