改名
This commit is contained in:
@@ -7,6 +7,7 @@ use Closure;
|
|||||||
use Exception;
|
use Exception;
|
||||||
use HttpServer\Abstracts\HttpService;
|
use HttpServer\Abstracts\HttpService;
|
||||||
use HttpServer\Controller;
|
use HttpServer\Controller;
|
||||||
|
use HttpServer\Exception\RequestException;
|
||||||
use HttpServer\Http\Context;
|
use HttpServer\Http\Context;
|
||||||
use HttpServer\Http\Request;
|
use HttpServer\Http\Request;
|
||||||
use HttpServer\Http\Response;
|
use HttpServer\Http\Response;
|
||||||
@@ -492,7 +493,7 @@ class Router extends HttpService implements RouterInterface
|
|||||||
{
|
{
|
||||||
$node = $this->find_path(\request());
|
$node = $this->find_path(\request());
|
||||||
if (!($node instanceof Node)) {
|
if (!($node instanceof Node)) {
|
||||||
return send($this->notFundCore());
|
throw new RequestException(self::NOT_FOUND,404);
|
||||||
}
|
}
|
||||||
send(($response = $node->dispatch()), 200);
|
send(($response = $node->dispatch()), 200);
|
||||||
if (!$node->hasAfter()) {
|
if (!$node->hasAfter()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user