Skip to content

Commit a7df135

Browse files
vtedescoweaverryan
authored andcommitted
Fixed typo "$this->request->getClientIp()" should be "$request->getClientIp()" in security Voters config
1 parent f86ffb5 commit a7df135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/security/voters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ and compare the IP address against a set of blacklisted IP addresses:
8888
function vote(TokenInterface $token, $object, array $attributes)
8989
{
9090
$request = $this->container->get('request');
91-
if (in_array($this->request->getClientIp(), $this->blacklistedIp)) {
91+
if (in_array($request->getClientIp(), $this->blacklistedIp)) {
9292
return VoterInterface::ACCESS_DENIED;
9393
}
9494

0 commit comments

Comments
 (0)