PrivilegeTarget
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
getParameterDefinitions()
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
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
PrivilegeParameterDefinition[]
getParameterDefinitions()
No description
bool
hasParameters()
No description
PrivilegeInterface
createPrivilege(string $permission, array $parameters = [])
No description
protected Closure
createParameterMapper(array $parameters)
No description
protected PrivilegeParameterInterface
createParameter(PrivilegeParameterDefinition $parameterDefinition, array $parameters)
No description