This commit is contained in:
as2252258@163.com
2021-09-12 03:46:24 +08:00
parent 989158bc3d
commit b91199671a
8 changed files with 1151 additions and 1090 deletions
+4 -5
View File
@@ -69,10 +69,9 @@ class Node
}
/**
* @throws NotFindClassException
* @throws ReflectionException
*/
/**
* @param \Http\Route\Router $router
*/
public function __construct(public Router $router)
{
$eventDispatcher = di(EventProvider::class);
@@ -197,7 +196,7 @@ class Node
* @param RequestInterface $request
* @return bool
*/
#[Pure] public function methodAllow(RequestInterface $request): bool
public function methodAllow(RequestInterface $request): bool
{
if (!in_array($request->getMethod(), $this->method)) {
return true;