Method | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Repository $repository ) | ||
supportsAttribute ( string $attribute ) : boolean | Checks if the voter supports the given attribute. | |
supportsClass ( string $class ) : true | Checks if the voter supports the given class. | |
vote ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, object $object, array $attributes ) : integer | Returns the vote for the given parameters. |
public __construct ( eZ\Publish\API\Repository\Repository $repository ) | ||
$repository | eZ\Publish\API\Repository\Repository |
public supportsAttribute ( string $attribute ) : boolean | ||
$attribute | string | An attribute |
return | boolean | true if this Voter supports the attribute, false otherwise |
public supportsClass ( string $class ) : true | ||
$class | string | A class name |
return | true | if this Voter can process the class |
public vote ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, object $object, array $attributes ) : integer | ||
$token | Symfony\Component\Security\Core\Authentication\Token\TokenInterface | A TokenInterface instance |
$object | object | The object to secure |
$attributes | array | An array of attributes associated with the method being invoked |
return | integer | either ACCESS_GRANTED, ACCESS_ABSTAIN, or ACCESS_DENIED |