eee
This commit is contained in:
@@ -16,9 +16,9 @@ class NotFoundController extends Controller
|
||||
public function fail(): ResponseInterface
|
||||
{
|
||||
if ($this->request->getMethod() == 'OPTIONS') {
|
||||
return $this->response->withStatus(200, "");
|
||||
return \response()->withStatus(200, "");
|
||||
}
|
||||
return $this->response->withStatus(404, "not found page.");
|
||||
return \response()->withStatus(404, "not found page.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -80,11 +80,6 @@ class ControllerInterpreter
|
||||
$reflectionMethod = $reflectionClass->getMethod($reflectionMethod);
|
||||
}
|
||||
|
||||
$returnType = $reflectionMethod->getReturnType();
|
||||
if (method_exists($returnType, 'getName') && $returnType->getName() !== 'Psr\Http\Message\ResponseInterface') {
|
||||
die('Request Handler<' . $class::class . '::' . $reflectionMethod->getName() . '> returns must implements on Psr\Http\Message\ResponseInterface');
|
||||
}
|
||||
|
||||
$container = \Kiri::getDi();
|
||||
$parameters = $container->getMethodParams($reflectionMethod);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user