/** * */ protected function setupJsonResponse() { // Make text translator available in the controller $this->lang = \Lib\AppFactory::translator($this->app->request()->language()); $this->response = new \Lib\Http\JsonResponse(); return $this; }