File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -191,10 +191,10 @@ pattern so that it is only accessible by requests from the local server itself:
191191
192192 <config >
193193 <!-- ... -->
194- <rule path =" ^/internal"
195- role = " IS_AUTHENTICATED_ANONYMOUSLY "
196- ips = " 127.0.0.1, ::1"
197- / >
194+ <rule path =" ^/internal" role = " IS_AUTHENTICATED_ANONYMOUSLY " >
195+ < ip >127.0.0.1</ ip >
196+ < ip > ::1</ ip >
197+ </ rule >
198198
199199 <rule path =" ^/internal" role =" ROLE_NO_ACCESS" />
200200 </config >
@@ -209,7 +209,7 @@ pattern so that it is only accessible by requests from the local server itself:
209209 array(
210210 'path' => '^/internal',
211211 'role' => 'IS_AUTHENTICATED_ANONYMOUSLY',
212- 'ips' => '127.0.0.1, ::1',
212+ 'ips' => array( '127.0.0.1', ' ::1') ,
213213 ),
214214 array(
215215 'path' => '^/internal',
@@ -262,10 +262,19 @@ key:
262262
263263 .. code-block :: xml
264264
265- <access-control >
265+ <!-- app/config/security.xml -->
266+ <?xml version =" 1.0" encoding =" UTF-8" ?>
267+ <srv : container xmlns =" http://symfony.com/schema/dic/security"
268+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
269+ xmlns : srv =" http://symfony.com/schema/dic/services"
270+ xsi : schemaLocation =" http://symfony.com/schema/dic/services
271+ http://symfony.com/schema/dic/services/services-1.0.xsd" >
272+
273+ <config >
266274 <rule path =" ^/_internal/secure"
267275 allow-if =" '127.0.0.1' == request.getClientIp() or has_role('ROLE_ADMIN')" />
268- </access-control >
276+ </config >
277+ </srv : container >
269278
270279 .. code-block :: php
271280
You can’t perform that action at this time.
0 commit comments