This commit is contained in:
2021-09-06 17:59:12 +08:00
parent 42f057bc8a
commit 21c7f383bb
10 changed files with 18 additions and 429 deletions
-5
View File
@@ -7,7 +7,6 @@ use Annotation\Inject;
use Closure;
use Exception;
use Http\Abstracts\HttpService;
use Http\Context\Response;
use Http\Controller;
use Http\IInterface\MiddlewareInterface;
use Http\IInterface\RouterInterface;
@@ -42,8 +41,6 @@ class Router extends HttpService implements RouterInterface
public int $useTree = ROUTER_TREE;
public ?Response $response = null;
/**
* @var RequestInterface
@@ -69,8 +66,6 @@ class Router extends HttpService implements RouterInterface
public function init()
{
$this->namespace = Config::get('http.namespace', $this->namespace);
$this->response = Kiri::app()->get('response');
}