diff --git a/security/access_control.rst b/security/access_control.rst index 66abe850fb9..a669ddbc0c6 100644 --- a/security/access_control.rst +++ b/security/access_control.rst @@ -41,7 +41,7 @@ Take the following ``access_control`` entries as an example: # ... access_control: - { path: ^/admin, roles: ROLE_USER_IP, ip: 127.0.0.1 } - - { path: ^/admin, roles: ROLE_USER_IP, ip: 127.0.0.1, port: 8080 } + - { path: ^/admin, roles: ROLE_USER_PORT, ip: 127.0.0.1, port: 8080 } - { path: ^/admin, roles: ROLE_USER_HOST, host: symfony\.com$ } - { path: ^/admin, roles: ROLE_USER_METHOD, methods: [POST, PUT] } - { path: ^/admin, roles: ROLE_USER } @@ -59,7 +59,7 @@ Take the following ``access_control`` entries as an example: - + @@ -79,7 +79,7 @@ Take the following ``access_control`` entries as an example: ], [ 'path' => '^/admin', - 'role' => 'ROLE_USER_IP', + 'role' => 'ROLE_USER_PORT', 'ip' => '127.0.0.1', 'port' => '8080', ),