PrivilegeTarget
class PrivilegeTarget (View source)
A privilege target
Properties
protected string | $identifier | ||
protected string | $privilegeClassName | ||
protected string | $matcher | ||
protected PrivilegeParameterDefinition[] | $parameterDefinitions | ||
protected ObjectManagerInterface | $objectManager | ||
protected string | $label |
Methods
__construct(string $identifier, string $privilegeClassName, string $matcher, array $parameterDefinitions = [], string $label = '')
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
array
getParameterDefinitions()
No description
bool
hasParameters()
No description
createPrivilege(string $permission, array $parameters = [])
No description
string
getLabel()
No description
createParameterMapper(array $parameters)
No description
createParameter(PrivilegeParameterDefinition $parameterDefinition, array $parameters)
No description
Details
__construct(string $identifier, string $privilegeClassName, string $matcher, array $parameterDefinitions = [], string $label = '')
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
array
getParameterDefinitions()
No description
bool
hasParameters()
No description
PrivilegeInterface
createPrivilege(string $permission, array $parameters = [])
No description
string
getLabel()
No description
protected Closure
createParameterMapper(array $parameters)
No description
protected PrivilegeParameterInterface
createParameter(PrivilegeParameterDefinition $parameterDefinition, array $parameters)
No description