\Ceo\Api\ListenersAclListener

ACL provider

Summary

Methods
Properties
Constants
beforeDispatch()
returnInvalid()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

beforeDispatch()

beforeDispatch(\Phalcon\Events\Event  $event, \Phalcon\Mvc\Dispatcher  $dispatcher) 

Listens for the 'beforeDispatch' event and checks action against the ACL. Based on priority, this will always run AFTER the key check

Will return output and exit program execution on error

Parameters

\Phalcon\Events\Event $event
\Phalcon\Mvc\Dispatcher $dispatcher

returnInvalid()

returnInvalid() 

Output a 403 Forbidden response and proper JSON encoded error message