Skip to content

Commit 442f293

Browse files
committed
Tweaking XML for #468
1 parent 6972bd4 commit 442f293

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

book/security.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,15 @@ authentication (i.e. the old-school username/password box):
6363
6464
.. code-block:: xml
6565
66-
<!-- app/config/security.xml -->
66+
<?xml version="1.0" encoding="UTF-8"?>
67+
6768
<srv:container xmlns="http://symfony.com/schema/dic/security"
6869
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6970
xmlns:srv="http://symfony.com/schema/dic/services"
7071
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
7172
73+
<!-- app/config/security.xml -->
74+
7275
<config>
7376
<firewall name="secured_area" pattern="^/">
7477
<anonymous />
@@ -283,12 +286,15 @@ First, enable form login under your firewall:
283286
284287
.. code-block:: xml
285288
286-
<!-- app/config/security.xml -->
289+
<?xml version="1.0" encoding="UTF-8"?>
290+
287291
<srv:container xmlns="http://symfony.com/schema/dic/security"
288292
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
289293
xmlns:srv="http://symfony.com/schema/dic/services"
290294
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
291295
296+
<!-- app/config/security.xml -->
297+
292298
<config>
293299
<firewall name="secured_area" pattern="^/">
294300
<anonymous />

cookbook/security/securing_services.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,14 @@ documentation.
238238
239239
.. code-block:: xml
240240
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"
243244
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 -->
246249
247250
<jms_security_extra secure_controllers="true" secure_all_services="true" />
248251

0 commit comments

Comments
 (0)