Skip to content

Commit b4ee5fb

Browse files
ifdatticwouterj
authored andcommitted
Update security.rst
| Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3 | Fixed tickets |
1 parent a6a3b9c commit b4ee5fb

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

book/security.rst

+22-10
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,17 @@ configuration looks like this:
5656
<srv:container xmlns="http://symfony.com/schema/dic/security"
5757
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5858
xmlns:srv="http://symfony.com/schema/dic/services"
59-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
59+
xsi:schemaLocation="http://symfony.com/schema/dic/services
60+
http://symfony.com/schema/dic/services/services-1.0.xsd">
6061
6162
<config>
6263
<provider name="in_memory">
6364
<memory />
6465
</provider>
6566
66-
<firewall name="dev" pattern="^/(_(profiler|wdt)|css|images|js)/" security=false />
67+
<firewall name="dev"
68+
pattern="^/(_(profiler|wdt)|css|images|js)/"
69+
security=false />
6770
6871
<firewall name="default">
6972
<anonymous />
@@ -145,7 +148,8 @@ To activate this, add the ``http_basic`` key under your firewall:
145148
<srv:container xmlns="http://symfony.com/schema/dic/security"
146149
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
147150
xmlns:srv="http://symfony.com/schema/dic/services"
148-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
151+
xsi:schemaLocation="http://symfony.com/schema/dic/services
152+
http://symfony.com/schema/dic/services/services-1.0.xsd">
149153
150154
<config>
151155
<!-- ... -->
@@ -216,7 +220,8 @@ user to be logged in to access this URL:
216220
<srv:container xmlns="http://symfony.com/schema/dic/security"
217221
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
218222
xmlns:srv="http://symfony.com/schema/dic/services"
219-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
223+
xsi:schemaLocation="http://symfony.com/schema/dic/services
224+
http://symfony.com/schema/dic/services/services-1.0.xsd">
220225
221226
<config>
222227
<!-- ... -->
@@ -309,7 +314,8 @@ provider, but it's better to think of it as an "in configuration" provider:
309314
<srv:container xmlns="http://symfony.com/schema/dic/security"
310315
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
311316
xmlns:srv="http://symfony.com/schema/dic/services"
312-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
317+
xsi:schemaLocation="http://symfony.com/schema/dic/services
318+
http://symfony.com/schema/dic/services/services-1.0.xsd">
313319
314320
<config>
315321
<provider name="in_memory">
@@ -376,7 +382,8 @@ To fix this, add an ``encoders`` key:
376382
<srv:container xmlns="http://symfony.com/schema/dic/security"
377383
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
378384
xmlns:srv="http://symfony.com/schema/dic/services"
379-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
385+
xsi:schemaLocation="http://symfony.com/schema/dic/services
386+
http://symfony.com/schema/dic/services/services-1.0.xsd">
380387
381388
<config>
382389
<!-- ... -->
@@ -456,13 +463,16 @@ else, you'll want to encode their passwords. The best algorithm to use is
456463
<srv:container xmlns="http://symfony.com/schema/dic/security"
457464
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
458465
xmlns:srv="http://symfony.com/schema/dic/services"
459-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
466+
xsi:schemaLocation="http://symfony.com/schema/dic/services
467+
http://symfony.com/schema/dic/services/services-1.0.xsd">
460468
461469
<config>
462470
<!-- ... -->
463471
464472
<encoder class="Symfony\Component\Security\Core\User\User"
465-
algorithm="bcrypt" cost="12" />
473+
algorithm="bcrypt"
474+
cost="12" />
475+
466476
<!-- ... -->
467477
</config>
468478
</srv:container>
@@ -514,7 +524,8 @@ like this:
514524
<srv:container xmlns="http://symfony.com/schema/dic/security"
515525
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
516526
xmlns:srv="http://symfony.com/schema/dic/services"
517-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
527+
xsi:schemaLocation="http://symfony.com/schema/dic/services
528+
http://symfony.com/schema/dic/services/services-1.0.xsd">
518529
519530
<config>
520531
<provider name="in_memory">
@@ -681,7 +692,8 @@ URL pattern. You saw this earlier, where anything matching the regular expressio
681692
<srv:container xmlns="http://symfony.com/schema/dic/security"
682693
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
683694
xmlns:srv="http://symfony.com/schema/dic/services"
684-
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
695+
xsi:schemaLocation="http://symfony.com/schema/dic/services
696+
http://symfony.com/schema/dic/services/services-1.0.xsd">
685697
686698
<config>
687699
<!-- ... -->

0 commit comments

Comments
 (0)