PHP Class Sulu\Component\Security\Authorization\SecurityContextVoter

Inheritance: implements Symfony\Component\Security\Core\Authorization\Voter\VoterInterface
Mostra file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Sulu\Component\Security\Authorization\AccessControl\AccessControlManagerInterface $accessControlManager, $permissions )
supportsAttribute ( $attribute )
supportsClass ( $class )
vote ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, $object, array $attributes )

Method Details

__construct() public method

public __construct ( Sulu\Component\Security\Authorization\AccessControl\AccessControlManagerInterface $accessControlManager, $permissions )
$accessControlManager Sulu\Component\Security\Authorization\AccessControl\AccessControlManagerInterface

supportsAttribute() public method

public supportsAttribute ( $attribute )

supportsClass() public method

public supportsClass ( $class )

vote() public method

public vote ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, $object, array $attributes )
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$attributes array