Security
This is the security plugin which controls that users only have access to the modules they're assigned to
- Full name:
\Zemit\Mvc\Dispatcher\Security
- Parent class:
\Zemit\Di\Injectable
Methods
beforeDispatchLoop
This action is executed before execute any action in the application
public beforeDispatchLoop(\Phalcon\Events\Event $event, \Phalcon\Dispatcher\AbstractDispatcher $dispatcher): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$event | \Phalcon\Events\Event | |
$dispatcher | \Phalcon\Dispatcher\AbstractDispatcher |
Throws:
checkAcl
Check if the current identity is allowed from the dispatcher
public checkAcl(\Phalcon\Events\Event $event, ?\Phalcon\Dispatcher\AbstractDispatcher $dispatcher = null): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$event | \Phalcon\Events\Event | |
$dispatcher | ?\Phalcon\Dispatcher\AbstractDispatcher |
Throws: