File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -63,12 +63,15 @@ authentication (i.e. the old-school username/password box):
63
63
64
64
.. code-block :: xml
65
65
66
- <!-- app/config/security.xml -->
66
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
67
+
67
68
<srv : container xmlns =" http://symfony.com/schema/dic/security"
68
69
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
69
70
xmlns : srv =" http://symfony.com/schema/dic/services"
70
71
xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" >
71
72
73
+ <!-- app/config/security.xml -->
74
+
72
75
<config >
73
76
<firewall name =" secured_area" pattern =" ^/" >
74
77
<anonymous />
@@ -283,12 +286,15 @@ First, enable form login under your firewall:
283
286
284
287
.. code-block :: xml
285
288
286
- <!-- app/config/security.xml -->
289
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
290
+
287
291
<srv : container xmlns =" http://symfony.com/schema/dic/security"
288
292
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
289
293
xmlns : srv =" http://symfony.com/schema/dic/services"
290
294
xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" >
291
295
296
+ <!-- app/config/security.xml -->
297
+
292
298
<config >
293
299
<firewall name =" secured_area" pattern =" ^/" >
294
300
<anonymous />
Original file line number Diff line number Diff line change @@ -238,11 +238,14 @@ documentation.
238
238
239
239
.. code-block :: xml
240
240
241
- <!-- app/config/config.xml -->
242
- <srv : container xmlns =" http://symfony.com/schema/dic/security"
241
+ <?xml version =" 1.0" ?>
242
+
243
+ <container xmlns =" http://symfony.com/schema/dic/services"
243
244
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
244
- xmlns : srv =" http://symfony.com/schema/dic/services"
245
- xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd" >
245
+ xmlns : acme_hello =" http://www.example.com/symfony/schema/"
246
+ xsi : schemaLocation =" http://www.example.com/symfony/schema/ http://www.example.com/symfony/schema/hello-1.0.xsd" >
247
+
248
+ <!-- app/config/config.xml -->
246
249
247
250
<jms_security_extra secure_controllers =" true" secure_all_services =" true" />
248
251
You can’t perform that action at this time.
0 commit comments