Exemplo n.º 1
0
 protected function GenerateResponse()
 {
     try {
         $this->response = POSController::Buscar(isset($_GET['query']) ? $_GET['query'] : null);
     } catch (Exception $e) {
         //Logger::error($e);
         throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage()));
     }
 }