Add event for backend, before running a controller

This commit is contained in:
Samuel Georges 2015-01-18 15:23:19 +11:00
parent a936255407
commit 47cd204686
1 changed files with 10 additions and 0 deletions

View File

@ -157,6 +157,16 @@ class Controller extends Extendable
$this->action = $action;
$this->params = $params;
/*
* Extensibility
*/
if (
($event = $this->fireEvent('page.beforeDisplay', [$action, $params], true)) ||
($event = Event::fire('backend.page.beforeDisplay', [$this, $action, $params], true))
) {
return $event;
}
/*
* Determine if this request is a public action.
*/