Exemplo n.º 1
0
 public function executeAction()
 {
     if ($this->route->isAuthRequired() && !Authentication::isAuthenticated()) {
         $loginRoute = Route::findRoute(\Config\App\LOGIN_PAGE_ROUTE, Route::METHOD_GET);
         $obj = ControllerHandler::instance()->redirectToRoute($loginRoute, $this->request);
         $action = $loginRoute->getAction();
         $parameters = Route::getRouteParameters($this->route, $this->request);
         return call_user_method_array($action, $obj, $parameters);
     }
     $action = $this->route->getAction();
     $parameters = Route::getRouteParameters($this->route, $this->request);
     return call_user_method_array($action, $this, $parameters);
 }
 public function executeAction()
 {
     $action = $this->route->getAction();
     $parameters = Route::getRouteParameters($this->route, $this->request);
     return call_user_method_array($action, $this, $parameters);
 }