@@ -155,45 +155,6 @@ encoding algorithm. Also, each algorithm defines different config options:
155
155
# MessageDigestPasswordEncoder encoder using SHA512 hashing with default options
156
156
AppBundle\Entity\User : ' sha512'
157
157
158
- .. code-block :: xml
159
-
160
- <!-- app/config/security.xml -->
161
- <?xml version =" 1.0" charset =" UTF-8" ?>
162
- <srv : container xmlns =" http://symfony.com/schema/dic/security"
163
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
164
- xmlns : srv =" http://symfony.com/schema/dic/services"
165
- xsi : schemaLocation =" http://symfony.com/schema/dic/services
166
- https://symfony.com/schema/dic/services/services-1.0.xsd" >
167
-
168
- <config >
169
- <!-- ... -->
170
- <!-- bcrypt encoder with default options -->
171
- <encoder
172
- class =" AppBundle\Entity\User"
173
- algorithm =" bcrypt"
174
- />
175
-
176
- <!-- bcrypt encoder with custom options -->
177
- <encoder
178
- class =" AppBundle\Entity\User"
179
- algorithm =" bcrypt"
180
- cost =" 15"
181
- />
182
-
183
- <!-- Argon2i encoder with default options -->
184
- <encoder
185
- class =" AppBundle\Entity\User"
186
- algorithm =" argon2i"
187
- />
188
-
189
- <!-- MessageDigestPasswordEncoder encoder using SHA512 hashing with default options -->
190
- <encoder
191
- class =" AppBundle\Entity\User"
192
- algorithm =" sha512"
193
- />
194
- </config >
195
- </srv : container >
196
-
197
158
.. code-block :: php
198
159
199
160
// app/config/security.php
@@ -305,28 +266,6 @@ application:
305
266
# the rest of options depend on the authentication mechanism
306
267
# ...
307
268
308
- .. code-block :: xml
309
-
310
- <!-- app/config/security.xml -->
311
- <?xml version =" 1.0" encoding =" UTF-8" ?>
312
- <srv : container xmlns =" http://symfony.com/schema/dic/security"
313
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
314
- xmlns : srv =" http://symfony.com/schema/dic/services"
315
- xsi : schemaLocation =" http://symfony.com/schema/dic/services
316
- https://symfony.com/schema/dic/services/services-1.0.xsd" >
317
-
318
- <config >
319
- <!-- ... -->
320
-
321
- <!-- 'pattern' is a regular expression matched against the incoming
322
- request URL. If there's a match, authentication is triggered -->
323
- <firewall name =" main" pattern =" ^/admin" >
324
- <!-- the rest of options depend on the authentication mechanism -->
325
- <!-- ... -->
326
- </firewall >
327
- </config >
328
- </srv : container >
329
-
330
269
.. code-block :: php
331
270
332
271
// app/config/security.php
@@ -633,23 +572,6 @@ To use HTTP-Digest authentication you need to provide a realm and a secret:
633
572
secret : ' %secret%'
634
573
realm : ' secure-api'
635
574
636
- .. code-block :: xml
637
-
638
- <!-- app/config/security.xml -->
639
- <?xml version =" 1.0" charset =" UTF-8" ?>
640
- <srv : container xmlns =" http://symfony.com/schema/dic/security"
641
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
642
- xmlns : srv =" http://symfony.com/schema/dic/services"
643
- xsi : schemaLocation =" http://symfony.com/schema/dic/services
644
- https://symfony.com/schema/dic/services/services-1.0.xsd" >
645
-
646
- <config >
647
- <firewall name =" somename" >
648
- <http-digest secret =" %secret%" realm =" secure-api" />
649
- </firewall >
650
- </config >
651
- </srv : container >
652
-
653
575
.. code-block :: php
654
576
655
577
// app/config/security.php
@@ -696,26 +618,6 @@ multiple firewalls, the "context" could actually be shared:
696
618
# ...
697
619
context : my_context
698
620
699
- .. code-block :: xml
700
-
701
- <!-- app/config/security.xml -->
702
- <?xml version =" 1.0" charset =" UTF-8" ?>
703
- <srv : container xmlns =" http://symfony.com/schema/dic/security"
704
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
705
- xmlns : srv =" http://symfony.com/schema/dic/services"
706
- xsi : schemaLocation =" http://symfony.com/schema/dic/services
707
- https://symfony.com/schema/dic/services/services-1.0.xsd" >
708
-
709
- <config >
710
- <firewall name =" somename" context =" my_context" >
711
- <!-- ... -->
712
- </firewall >
713
- <firewall name =" othername" context =" my_context" >
714
- <!-- ... -->
715
- </firewall >
716
- </config >
717
- </srv : container >
718
-
719
621
.. code-block :: php
720
622
721
623
// app/config/security.php
0 commit comments