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 RuntimeException AccessDeniedException is thrown when the account has not the required role. Methods __construct($message = 'Access Denied.', Exception $previous = null) Details __construct($message = 'Access Denied.', Exception $previous = null) Parameters $message Exception $previous

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

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

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

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::setValue()

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

AcceptHeaderItem::setQuality()

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