改名
This commit is contained in:
@@ -9,6 +9,7 @@ use Exception;
|
|||||||
use Http\Abstracts\HttpService;
|
use Http\Abstracts\HttpService;
|
||||||
use Http\Controller;
|
use Http\Controller;
|
||||||
use Http\Handler\Abstracts\HandlerManager;
|
use Http\Handler\Abstracts\HandlerManager;
|
||||||
|
use Http\Handler\Handler;
|
||||||
use Http\IInterface\MiddlewareInterface;
|
use Http\IInterface\MiddlewareInterface;
|
||||||
use Http\IInterface\RouterInterface;
|
use Http\IInterface\RouterInterface;
|
||||||
use JetBrains\PhpStorm\Pure;
|
use JetBrains\PhpStorm\Pure;
|
||||||
@@ -108,8 +109,7 @@ class Router extends HttpService implements RouterInterface
|
|||||||
$path = $this->addPrefix() . '/' . ltrim($path, '/');
|
$path = $this->addPrefix() . '/' . ltrim($path, '/');
|
||||||
|
|
||||||
|
|
||||||
|
HandlerManager::add($path, $method, new Handler($path, $handler));
|
||||||
HandlerManager::add($path, $method, $handler);
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
return $this->tree($path, $handler, $method);
|
return $this->tree($path, $handler, $method);
|
||||||
|
|||||||
Reference in New Issue
Block a user