Exemple #1
0
 /**
  * @return AjaxResponse
  */
 protected function initResponse()
 {
     $ajaxResponse = new AjaxResponse();
     try {
         $app = App::getInstance();
         $ajaxResponse->status = true;
         $ajaxResponse->result = $app->callFromRequest($this->arguments);
     } catch (\Exception $e) {
         $ajaxResponse->status = false;
         $ajaxResponse->result = null;
         App::exceptionHandler($e);
     }
     $ajaxResponse->notification = Notification::getAll();
     return $ajaxResponse;
 }