PHP Interface Symfony\Component\Security\Authorization\AccessDecisionManagerInterface

Author: Fabien Potencier ([email protected])
Show file Open project: pmjones/php-framework-benchmarks

Public Methods

Method Description
decide ( Symfony\Component\Security\Authentication\Token\TokenInterface $token, array $attributes, object $object = null ) : boolean Decides whether the access is possible or not.
supportsAttribute ( string $attribute ) : boolean Checks if the access decision manager supports the given attribute.
supportsClass ( string $class ) : true Checks if the access decision manager supports the given class.

Method Details

decide() public method

Decides whether the access is possible or not.
public decide ( Symfony\Component\Security\Authentication\Token\TokenInterface $token, array $attributes, object $object = null ) : boolean
$token Symfony\Component\Security\Authentication\Token\TokenInterface A TokenInterface instance
$attributes array An array of attributes associated with the method being invoked
$object object The object to secure
return boolean true if the access is granted, false otherwise

supportsAttribute() public method

Checks if the access decision manager supports the given attribute.
public supportsAttribute ( string $attribute ) : boolean
$attribute string An attribute
return boolean true if this decision manager supports the attribute, false otherwise

supportsClass() public method

Checks if the access decision manager supports the given class.
public supportsClass ( string $class ) : true
$class string A class name
return true if this decision manager can process the class