Skip to content

Commit 4fbf725

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Update access_denied_handler.rst Update access_control.rst
2 parents b227f39 + 4db98ff commit 4fbf725

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

security/access_control.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ key:
337337
// the 'role' and 'allow-if' options work like an OR expression, so
338338
// access is granted if the expression is TRUE or the user has ROLE_ADMIN
339339
'roles' => 'ROLE_ADMIN',
340-
'allow_if' => '"127.0.0.1" == request.getClientIp() or request.headers.has('X-Secure-Access')',
340+
'allow_if' => '"127.0.0.1" == request.getClientIp() or request.headers.has("X-Secure-Access")',
341341
],
342342
],
343343
]);

security/access_denied_handler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ configure it under your firewall:
5151
<!-- config/packages/security.xml -->
5252
<config>
5353
<firewall name="main">
54-
<access_denied_handler>App\Security\AccessDeniedHandler</access_denied_handler>
54+
<access-denied-handler>App\Security\AccessDeniedHandler</access-denied-handler>
5555
</firewall>
5656
</config>
5757

0 commit comments

Comments
 (0)