Skip to content

Commit 83d2de8

Browse files
sgrodzickiweaverryan
authored andcommitted
Meet PSR-2 visibility requirements
1 parent fa63586 commit 83d2de8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/security/voters.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ which requires the following three methods:
2525
2626
interface VoterInterface
2727
{
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);
3131
}
3232
3333
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:
8585
return true;
8686
}
8787
88-
function vote(TokenInterface $token, $object, array $attributes)
88+
public function vote(TokenInterface $token, $object, array $attributes)
8989
{
9090
$request = $this->container->get('request');
9191
if (in_array($request->getClientIp(), $this->blacklistedIp)) {

0 commit comments

Comments
 (0)