Cake\Controller\Controller::implementedEvents PHP Метод

implementedEvents() публичный Метод

You can override this function to add your own listener callbacks
public implementedEvents ( ) : array
Результат array
    public function implementedEvents()
    {
        return ['Controller.initialize' => 'beforeFilter', 'Controller.beforeRender' => 'beforeRender', 'Controller.beforeRedirect' => 'beforeRedirect', 'Controller.shutdown' => 'afterFilter'];
    }

Usage Example

Пример #1
0
 public function implementedEvents()
 {
     return array_merge(parent::implementedEvents(), ['CasAuth.authenticate' => 'afterCasAuthenticate']);
 }
All Usage Examples Of Cake\Controller\Controller::implementedEvents