Add event for backend, before running a controller
This commit is contained in:
parent
a936255407
commit
47cd204686
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue