Documentation

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

$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
Acl

isAllowed()

public isAllowed(ResourceInterface|string $resource, string $operation) : bool
Parameters
$resource : ResourceInterface|string
$operation : string
Return values
bool

setServiceLocator()

Set the service locator.

public setServiceLocator(ContainerInterface $locator) : void
Parameters
$locator : ContainerInterface

getServiceLocator()

Get the service locator.

protected getServiceLocator() : ContainerInterface
Return values
ContainerInterface

        
On this page

Search results