Acl
extends AbstractHelper
in package
Table of Contents
Properties
- $acl : AbstractAclService
- Acl.
- $locator : ContainerInterface
- Service locator.
Methods
- __invoke() : Acl
- Returns the Acl for a specific module.
- isAllowed() : bool
- setServiceLocator() : void
- Set the service locator.
- getServiceLocator() : ContainerInterface
- Get the service locator.
Properties
$acl
Acl.
protected
AbstractAclService
$acl
$locator
Service locator.
protected
ContainerInterface
$locator
Methods
__invoke()
Returns the Acl for a specific module.
public
__invoke(string $factory) : Acl
Parameters
- $factory : string
-
Acl factory to load
Return values
AclisAllowed()
public
isAllowed(ResourceInterface|string $resource, string $operation) : bool
Parameters
- $resource : ResourceInterface|string
- $operation : string
Return values
boolsetServiceLocator()
Set the service locator.
public
setServiceLocator(ContainerInterface $locator) : void
Parameters
- $locator : ContainerInterface
getServiceLocator()
Get the service locator.
protected
getServiceLocator() : ContainerInterface