class PrivilegeTarget (View source)

A privilege target

Properties

protected string $identifier
protected string $privilegeClassName
protected string $matcher
protected PrivilegeParameterDefinition[] $parameterDefinitions
protected ObjectManagerInterface $objectManager

Methods

__construct(string $identifier, string $privilegeClassName, string $matcher, array $parameterDefinitions = [])

No description

void
injectObjectManager(ObjectManagerInterface $objectManager)

This object is created very early so we can't rely on AOP for the property injection

string
getIdentifier()

No description

string
getPrivilegeClassName()

No description

string
getMatcher()

No description

bool
hasParameters()

No description

createPrivilege(string $permission, array $parameters = [])

No description

createParameterMapper(array $parameters)

No description

createParameter(PrivilegeParameterDefinition $parameterDefinition, array $parameters)

No description

Details

__construct(string $identifier, string $privilegeClassName, string $matcher, array $parameterDefinitions = [])

No description

Parameters

string $identifier
string $privilegeClassName
string $matcher
array $parameterDefinitions

void injectObjectManager(ObjectManagerInterface $objectManager)

This object is created very early so we can't rely on AOP for the property injection

Parameters

ObjectManagerInterface $objectManager

Return Value

void

string getIdentifier()

No description

Return Value

string

string getPrivilegeClassName()

No description

Return Value

string

string getMatcher()

No description

Return Value

string

PrivilegeParameterDefinition[] getParameterDefinitions()

No description

bool hasParameters()

No description

Return Value

bool

PrivilegeInterface createPrivilege(string $permission, array $parameters = [])

No description

Parameters

string $permission

one of "GRANT", "DENY" or "ABSTAIN"

array $parameters

Optional key/value array with parameter names and -values

Return Value

PrivilegeInterface

Exceptions

Exception

protected Closure createParameterMapper(array $parameters)

No description

Parameters

array $parameters

Return Value

Closure

protected PrivilegeParameterInterface createParameter(PrivilegeParameterDefinition $parameterDefinition, array $parameters)

No description

Parameters

PrivilegeParameterDefinition $parameterDefinition
array $parameters

Return Value

PrivilegeParameterInterface

Exceptions

Exception