AccessDeniedHandlerInterface

interface AccessDeniedHandlerInterface This is used by the ExceptionListener to translate an AccessDeniedException to a Response object. Methods Response handle(Request $request, AccessDeniedException $accessDeniedException) Handles an access denied failure. Details Response handle(Request $request, AccessDeniedException $accessDeniedException) Handles an access denied failure. Parameters Request $request AccessDeniedException $accessDeniedE

AccessDeniedException

class AccessDeniedException extends FileException Thrown when the access on a file was denied. Methods __construct(string $path) Constructor. Details __construct(string $path) Constructor. Parameters string $path The path to the accessed file

AccessDeniedException

class AccessDeniedException extends UnexpectedValueException

AccessDeniedHttpException

class AccessDeniedHttpException extends HttpException AccessDeniedHttpException. Methods __construct($message = null, Exception $previous = null, $code) Constructor. int getStatusCode() Returns the status code. from HttpException array getHeaders() Returns response headers. from HttpException Details __construct($message = null, Exception $previous = null, $code) Constructor. Parameters $message Exception $previous $code

AccessDecisionManagerInterface

interface AccessDecisionManagerInterface AccessDecisionManagerInterface makes authorization decisions. Methods bool decide(TokenInterface $token, array $attributes, object $object = null) Decides whether the access is possible or not. Details bool decide(TokenInterface $token, array $attributes, object $object = null) Decides whether the access is possible or not. Parameters TokenInterface $token A TokenInterface instance array $attributes An

AcceptHeaderItem::setValue()

AcceptHeaderItem setValue(string $value) Set the item value. Parameters string $value Return Value AcceptHeaderItem

AccessDecisionManager

class AccessDecisionManager implements AccessDecisionManagerInterface AccessDecisionManager is the base class for all access decision managers that use decision voters. Constants STRATEGY_AFFIRMATIVE STRATEGY_CONSENSUS STRATEGY_UNANIMOUS Methods __construct(array $voters = array(), string $strategy = self::STRATEGY_AFFIRMATIVE, bool $allowIfAllAbstainDecisions = false, bool $allowIfEqualGrantedDeniedDecisions = true) Constructor. setVoters(array $voters) Configures the

AcceptHeaderItem::setQuality()

AcceptHeaderItem setQuality(float $quality) Set the item quality. Parameters float $quality Return Value AcceptHeaderItem

AccessDecisionManager::setVoters()

setVoters(array $voters) Configures the voters. Parameters array $voters An array of VoterInterface instances

AccessDecisionManager::decide()

bool decide(TokenInterface $token, array $attributes, object $object = null) Decides whether the access is possible or not. Parameters TokenInterface $token A TokenInterface instance array $attributes An array of attributes associated with the method being invoked object $object The object to secure Return Value bool true if the access is granted, false otherwise