Skip to content

Commit 28c481f

Browse files
blue-eyesfabpot
authored andcommitted
[security]Updated config file path
1 parent ff6607a commit 28c481f

File tree

4 files changed

+73
-73
lines changed

4 files changed

+73
-73
lines changed

guides/security/authentication.rst

+43-43
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ basic authentication:
2525

2626
.. code-block:: yaml
2727
28-
# app/config/config.yml
28+
# app/config/security.yml
2929
security.config:
3030
firewalls:
3131
backend:
@@ -42,7 +42,7 @@ basic authentication:
4242
4343
.. code-block:: xml
4444
45-
<!-- app/config/config.xml -->
45+
<!-- app/config/security.xml -->
4646
<config>
4747
<firewall pattern="/admin/.*">
4848
<form-login />
@@ -56,7 +56,7 @@ basic authentication:
5656
5757
.. code-block:: php
5858
59-
// app/config/config.php
59+
// app/config/security.php
6060
$container->loadFromExtension('security', 'config', array(
6161
'firewalls' => array(
6262
'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:
9999

100100
.. code-block:: yaml
101101
102-
# app/config/config.yml
102+
# app/config/security.yml
103103
security.config:
104104
firewalls:
105105
backend:
@@ -111,7 +111,7 @@ You can configure a firewall to use more than one authentication mechanisms:
111111
112112
.. code-block:: xml
113113
114-
<!-- app/config/config.xml -->
114+
<!-- app/config/security.xml -->
115115
<config>
116116
<firewall pattern="/admin/.*">
117117
<x509 />
@@ -123,7 +123,7 @@ You can configure a firewall to use more than one authentication mechanisms:
123123
124124
.. code-block:: php
125125
126-
// app/config/config.php
126+
// app/config/security.php
127127
$container->loadFromExtension('security', 'config', array(
128128
'firewalls' => array(
129129
'backend' => array(
@@ -156,15 +156,15 @@ Configuring HTTP basic authentication is as simple as it can get:
156156

157157
.. code-block:: yaml
158158
159-
# app/config/config.yml
159+
# app/config/security.yml
160160
security.config:
161161
firewalls:
162162
main:
163163
http_basic: true
164164
165165
.. code-block:: xml
166166
167-
<!-- app/config/config.xml -->
167+
<!-- app/config/security.xml -->
168168
<config>
169169
<firewall>
170170
<http-basic />
@@ -173,7 +173,7 @@ Configuring HTTP basic authentication is as simple as it can get:
173173
174174
.. code-block:: php
175175
176-
// app/config/config.php
176+
// app/config/security.php
177177
$container->loadFromExtension('security', 'config', array(
178178
'firewalls' => array(
179179
'main' => array('http_basic' => true),
@@ -189,15 +189,15 @@ Configuring HTTP digest authentication is as simple as it can get:
189189

190190
.. code-block:: yaml
191191
192-
# app/config/config.yml
192+
# app/config/security.yml
193193
security.config:
194194
firewalls:
195195
main:
196196
http_digest: true
197197
198198
.. code-block:: xml
199199
200-
<!-- app/config/config.xml -->
200+
<!-- app/config/security.xml -->
201201
<config>
202202
<firewall>
203203
<http-digest />
@@ -206,7 +206,7 @@ Configuring HTTP digest authentication is as simple as it can get:
206206
207207
.. code-block:: php
208208
209-
// app/config/config.php
209+
// app/config/security.php
210210
$container->loadFromExtension('security', 'config', array(
211211
'firewalls' => array(
212212
'main' => array('http_digest' => true),
@@ -227,15 +227,15 @@ nowadays:
227227

228228
.. code-block:: yaml
229229
230-
# app/config/config.yml
230+
# app/config/security.yml
231231
security.config:
232232
firewalls:
233233
main:
234234
form_login: true
235235
236236
.. code-block:: xml
237237
238-
<!-- app/config/config.xml -->
238+
<!-- app/config/security.xml -->
239239
<config>
240240
<firewall>
241241
<form-login />
@@ -244,7 +244,7 @@ nowadays:
244244
245245
.. code-block:: php
246246
247-
// app/config/config.php
247+
// app/config/security.php
248248
$container->loadFromExtension('security', 'config', array(
249249
'firewalls' => array(
250250
'main' => array('form_login' => true),
@@ -364,7 +364,7 @@ configuration example that shows how to override them all:
364364

365365
.. code-block:: yaml
366366
367-
# app/config/config.yml
367+
# app/config/security.yml
368368
security.config:
369369
firewalls:
370370
main:
@@ -379,7 +379,7 @@ configuration example that shows how to override them all:
379379
380380
.. code-block:: xml
381381
382-
<!-- app/config/config.xml -->
382+
<!-- app/config/security.xml -->
383383
<config>
384384
<firewall>
385385
<form-login
@@ -396,7 +396,7 @@ configuration example that shows how to override them all:
396396
397397
.. code-block:: php
398398
399-
// app/config/config.php
399+
// app/config/security.php
400400
$container->loadFromExtension('security', 'config', array(
401401
'firewalls' => array(
402402
'main' => array('form_login' => array(
@@ -420,15 +420,15 @@ X.509 certificates are a great way to authenticate users if you know them all:
420420

421421
.. code-block:: yaml
422422
423-
# app/config/config.yml
423+
# app/config/security.yml
424424
security.config:
425425
firewalls:
426426
main:
427427
x509: true
428428
429429
.. code-block:: xml
430430
431-
<!-- app/config/config.xml -->
431+
<!-- app/config/security.xml -->
432432
<config>
433433
<firewall>
434434
<x509 />
@@ -437,7 +437,7 @@ X.509 certificates are a great way to authenticate users if you know them all:
437437
438438
.. code-block:: php
439439
440-
// app/config/config.php
440+
// app/config/security.php
441441
$container->loadFromExtension('security', 'config', array(
442442
'firewalls' => array(
443443
'main' => array('x509' => true),
@@ -491,15 +491,15 @@ access a resource restricted by an access control rule:
491491

492492
.. code-block:: yaml
493493
494-
# app/config/config.yml
494+
# app/config/security.yml
495495
security.config:
496496
firewalls:
497497
main:
498498
anonymous: true
499499
500500
.. code-block:: xml
501501
502-
<!-- app/config/config.xml -->
502+
<!-- app/config/security.xml -->
503503
<config>
504504
<firewall>
505505
<anonymous />
@@ -508,7 +508,7 @@ access a resource restricted by an access control rule:
508508
509509
.. code-block:: php
510510
511-
// app/config/config.php
511+
// app/config/security.php
512512
$container->loadFromExtension('security', 'config', array(
513513
'firewalls' => array(
514514
'main' => array('anonymous' => true),
@@ -539,7 +539,7 @@ cookie will be ever created by Symfony2):
539539

540540
.. code-block:: yaml
541541
542-
# app/config/config.yml
542+
# app/config/security.yml
543543
security.config:
544544
firewalls:
545545
main:
@@ -548,7 +548,7 @@ cookie will be ever created by Symfony2):
548548
549549
.. code-block:: xml
550550
551-
<!-- app/config/config.xml -->
551+
<!-- app/config/security.xml -->
552552
<config>
553553
<firewall stateless="true">
554554
<http-basic />
@@ -557,7 +557,7 @@ cookie will be ever created by Symfony2):
557557
558558
.. code-block:: php
559559
560-
// app/config/config.php
560+
// app/config/security.php
561561
$container->loadFromExtension('security', 'config', array(
562562
'firewalls' => array(
563563
'main' => array('http_basic' => true, 'stateless' => true),
@@ -581,7 +581,7 @@ done by activating the ``switch-user`` listener:
581581

582582
.. code-block:: yaml
583583
584-
# app/config/config.yml
584+
# app/config/security.yml
585585
security.config:
586586
firewalls:
587587
main:
@@ -590,7 +590,7 @@ done by activating the ``switch-user`` listener:
590590
591591
.. code-block:: xml
592592
593-
<!-- app/config/config.xml -->
593+
<!-- app/config/security.xml -->
594594
<config>
595595
<firewall>
596596
<http-basic />
@@ -600,7 +600,7 @@ done by activating the ``switch-user`` listener:
600600
601601
.. code-block:: php
602602
603-
// app/config/config.php
603+
// app/config/security.php
604604
$container->loadFromExtension('security', 'config', array(
605605
'firewalls' => array(
606606
'main'=> array('http_basic' => true, 'switch_user' => true),
@@ -625,7 +625,7 @@ security, also change the parameter name via the ``parameter`` setting:
625625

626626
.. code-block:: yaml
627627
628-
# app/config/config.yml
628+
# app/config/security.yml
629629
security.config:
630630
firewalls:
631631
main:
@@ -634,7 +634,7 @@ security, also change the parameter name via the ``parameter`` setting:
634634
635635
.. code-block:: xml
636636
637-
<!-- app/config/config.xml -->
637+
<!-- app/config/security.xml -->
638638
<config>
639639
<firewall>
640640
<http-basic />
@@ -644,7 +644,7 @@ security, also change the parameter name via the ``parameter`` setting:
644644
645645
.. code-block:: php
646646
647-
// app/config/config.php
647+
// app/config/security.php
648648
$container->loadFromExtension('security', 'config', array(
649649
'firewalls' => array(
650650
'main'=> array(
@@ -664,7 +664,7 @@ listener:
664664

665665
.. code-block:: yaml
666666
667-
# app/config/config.yml
667+
# app/config/security.yml
668668
security.config:
669669
firewalls:
670670
main:
@@ -673,7 +673,7 @@ listener:
673673
674674
.. code-block:: xml
675675
676-
<!-- app/config/config.xml -->
676+
<!-- app/config/security.xml -->
677677
<config>
678678
<firewall>
679679
<http-basic />
@@ -683,7 +683,7 @@ listener:
683683
684684
.. code-block:: php
685685
686-
// app/config/config.php
686+
// app/config/security.php
687687
$container->loadFromExtension('security', 'config', array(
688688
'firewalls' => array(
689689
'main'=> array('http_basic' => true, 'logout' => true),
@@ -698,16 +698,16 @@ are redirected to ``/``. This can be easily changed via the ``path`` and
698698

699699
.. code-block:: yaml
700700
701-
# app/config/config.yml
701+
# app/config/security.yml
702702
security.config:
703703
firewalls:
704704
main:
705705
http_basic: true
706-
logout: { path: /signout, target: signin }
706+
logout: { path: /signout, target: /signin }
707707
708708
.. code-block:: xml
709709
710-
<!-- app/config/config.xml -->
710+
<!-- app/config/security.xml -->
711711
<config>
712712
<firewall>
713713
<http-basic />
@@ -717,7 +717,7 @@ are redirected to ``/``. This can be easily changed via the ``path`` and
717717
718718
.. code-block:: php
719719
720-
// app/config/config.php
720+
// app/config/security.php
721721
$container->loadFromExtension('security', 'config', array(
722722
'firewalls' => array(
723723
'main'=> array(
@@ -738,7 +738,7 @@ firewall, or just for an authentication mechanism:
738738

739739
.. code-block:: yaml
740740
741-
# app/config/config.yml
741+
# app/config/security.yml
742742
security.config:
743743
providers:
744744
default:
@@ -762,7 +762,7 @@ firewall, or just for an authentication mechanism:
762762
763763
.. code-block:: xml
764764
765-
<!-- app/config/config.xml -->
765+
<!-- app/config/security.xml -->
766766
<config>
767767
<provider name="default">
768768
<password-encoder>sha1</password-encoder>
@@ -785,7 +785,7 @@ firewall, or just for an authentication mechanism:
785785
786786
.. code-block:: php
787787
788-
// app/config/config.php
788+
// app/config/security.php
789789
$container->loadFromExtension('security', 'config', array(
790790
'providers' => array(
791791
'default' => array(

0 commit comments

Comments
 (0)