Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb4ee5fb

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

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

‎book/security.rst

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,17 @@ configuration looks like this:
5656
<srv:containerxmlns="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
<providername="in_memory">
6364
<memory />
6465
</provider>
6566
66-
<firewallname="dev"pattern="^/(_(profiler|wdt)|css|images|js)/"security=false />
67+
<firewallname="dev"
68+
pattern="^/(_(profiler|wdt)|css|images|js)/"
69+
security=false />
6770
6871
<firewallname="default">
6972
<anonymous />
@@ -145,7 +148,8 @@ To activate this, add the ``http_basic`` key under your firewall:
145148
<srv:containerxmlns="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:containerxmlns="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:containerxmlns="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
<providername="in_memory">
@@ -376,7 +382,8 @@ To fix this, add an ``encoders`` key:
376382
<srv:containerxmlns="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:containerxmlns="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
<encoderclass="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:containerxmlns="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
<providername="in_memory">
@@ -681,7 +692,8 @@ URL pattern. You saw this earlier, where anything matching the regular expressio
681692
<srv:containerxmlns="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)

[8]ページ先頭

©2009-2025 Movatter.jp