Documentation

SecurityPlugin extends Injectable
in package

The security plugin manages the Access Control List (ACL).

Table of Contents

beforeDispatch()  : void
Check user permissions vs ACL and redirect to default route if not allowed
beforeException()  : void
Redirect user to default route if no controller/action found
getAcl()  : Memory
Get the application acl list.
getActions()  : array<string|int, mixed>
Get all actions of a controller
redirectUser()  : void
Redirect user to default route

Methods

beforeDispatch()

Check user permissions vs ACL and redirect to default route if not allowed

public beforeDispatch(Event $event, Dispatcher $dispatcher) : void
Parameters
$event : Event
$dispatcher : Dispatcher
Return values
void

beforeException()

Redirect user to default route if no controller/action found

public beforeException(Event $event, Dispatcher $dispatcher, Exception $exception) : void
Parameters
$event : Event

Event of the request

$dispatcher : Dispatcher

Application dispatcher

$exception : Exception

Current Exception

Return values
void

getAcl()

Get the application acl list.

private getAcl() : Memory
Return values
Memory

Acl list instance

getActions()

Get all actions of a controller

private getActions(string $class) : array<string|int, mixed>
Parameters
$class : string

Name of the class, should be a controller

Return values
array<string|int, mixed>

Actions found

redirectUser()

Redirect user to default route

private redirectUser() : void
Return values
void

Search results