diff --git a/Gii/GiiModel.php b/Gii/GiiModel.php index 82f36faa..518cbcb9 100644 --- a/Gii/GiiModel.php +++ b/Gii/GiiModel.php @@ -60,7 +60,7 @@ class GiiModel extends GiiBase $html = $this->getUseContent($class, $classFileName); } catch (\Throwable $e) { - var_dump($e->getMessage()); + logger()->error($e->getMessage()); } } diff --git a/HttpServer/Route/CoreMiddleware.php b/HttpServer/Route/CoreMiddleware.php index 047eb4af..3d7d9782 100644 --- a/HttpServer/Route/CoreMiddleware.php +++ b/HttpServer/Route/CoreMiddleware.php @@ -29,8 +29,6 @@ class CoreMiddleware implements \HttpServer\IInterface\Middleware { $headers = $request->headers; - var_dump(get_called_class()); - /** @var Response $response */ $response = Context::getContext('response'); $response->addHeader('Access-Control-Allow-Origin', '*'); diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index 6a19dd43..00f296a1 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -471,11 +471,10 @@ class Node extends HttpService */ public function dispatch(): mixed { -// if (!empty($this->callback)) { -// return $this->runWith(...func_get_args()); -// } + if (!empty($this->callback)) { + return $this->runWith(...func_get_args()); + } if (empty($this->restructure()->callback)) { - var_dump('404'); return Json::to(404, $this->errorMsg()); } return $this->runWith(...func_get_args()); diff --git a/HttpServer/Route/Reduce.php b/HttpServer/Route/Reduce.php index 48d4351b..9389252c 100644 --- a/HttpServer/Route/Reduce.php +++ b/HttpServer/Route/Reduce.php @@ -21,7 +21,6 @@ class Reduce */ public static function reduce($last, $middleWares): mixed { - var_export($middleWares); return array_reduce(array_reverse($middleWares), static::core(), $last); } diff --git a/System/Error/ErrorHandler.php b/System/Error/ErrorHandler.php index 093c2ca8..280addd5 100644 --- a/System/Error/ErrorHandler.php +++ b/System/Error/ErrorHandler.php @@ -55,8 +55,6 @@ class ErrorHandler extends Component implements ErrorInterface return; } - var_dump($lastError); - $this->category = 'shutdown'; $messages = explode(PHP_EOL, $lastError['message']); @@ -95,9 +93,6 @@ class ErrorHandler extends Component implements ErrorInterface return; } - var_dump(func_get_args()); - - $path = ['file' => $error[2], 'line' => $error[3]]; if ($error[0] === 0) {