Example #1
0
 public function run()
 {
     EventHandler::triggerEvent('whirlpool-load-action', parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH));
     $this->loadAction();
     EventHandler::triggerEvent('whirlpool-loaded-action', $this->action);
     EventHandler::triggerEvent('whirlpool-execute-action', $this->action);
     $response = $this->executeAction();
     EventHandler::triggerEvent('whirlpool-executed-action', $response);
     Session::clearFlashMessages();
 }