File tree Expand file tree Collapse file tree 1 file changed +26
-12
lines changed Expand file tree Collapse file tree 1 file changed +26
-12
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,19 @@ done by activating the ``switch_user`` firewall listener:
23
23
.. code-block :: xml
24
24
25
25
<!-- app/config/security.xml -->
26
- <config >
27
- <firewall >
28
- <!-- ... -->
29
- <switch-user />
30
- </firewall >
31
- </config >
26
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
27
+ <srv : container xmlns =" http://symfony.com/schema/dic/security"
28
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
29
+ xmlns : srv =" http://symfony.com/schema/dic/services"
30
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
31
+ http://symfony.com/schema/dic/services/services-1.0.xsd" >
32
+ <config >
33
+ <firewall >
34
+ <!-- ... -->
35
+ <switch-user />
36
+ </firewall >
37
+ </config >
38
+ </srv : container >
32
39
33
40
.. code-block :: php
34
41
@@ -99,12 +106,19 @@ setting:
99
106
.. code-block :: xml
100
107
101
108
<!-- app/config/security.xml -->
102
- <config >
103
- <firewall >
104
- <!-- ... -->
105
- <switch-user role =" ROLE_ADMIN" parameter =" _want_to_be_this_user" />
106
- </firewall >
107
- </config >
109
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
110
+ <srv : container xmlns =" http://symfony.com/schema/dic/security"
111
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
112
+ xmlns : srv =" http://symfony.com/schema/dic/services"
113
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
114
+ http://symfony.com/schema/dic/services/services-1.0.xsd" >
115
+ <config >
116
+ <firewall >
117
+ <!-- ... -->
118
+ <switch-user role =" ROLE_ADMIN" parameter =" _want_to_be_this_user" />
119
+ </firewall >
120
+ </config >
121
+ </srv : container >
108
122
109
123
.. code-block :: php
110
124
You can’t perform that action at this time.
0 commit comments