File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ which requires the following three methods:
25
25
26
26
interface VoterInterface
27
27
{
28
- function supportsAttribute($attribute);
29
- function supportsClass($class);
30
- function vote(TokenInterface $token, $object, array $attributes);
28
+ public function supportsAttribute($attribute);
29
+ public function supportsClass($class);
30
+ public function vote(TokenInterface $token, $object, array $attributes);
31
31
}
32
32
33
33
The ``supportsAttribute() `` method is used to check if the voter supports
@@ -85,7 +85,7 @@ and compare the IP address against a set of blacklisted IP addresses:
85
85
return true;
86
86
}
87
87
88
- function vote(TokenInterface $token, $object, array $attributes)
88
+ public function vote(TokenInterface $token, $object, array $attributes)
89
89
{
90
90
$request = $this->container->get('request');
91
91
if (in_array($request->getClientIp(), $this->blacklistedIp)) {
You can’t perform that action at this time.
0 commit comments