This commit is contained in:
2023-04-19 12:40:24 +08:00
parent ed1afa6e44
commit 2789d4a98b
+1 -1
View File
@@ -41,7 +41,7 @@ class ControllerInterpreter
{
$reflection = new \ReflectionFunction($method);
if ($reflection->getReturnType()->getName() !== 'Psr\Http\Message\ResponseInterface') {
throw new Exception('Request Handler returns must implements on Psr\Http\Message\ResponseInterface');
die('Request Handler returns must implements on Psr\Http\Message\ResponseInterface');
}
$params = \Kiri::getDi()->resolveMethodParams($reflection);
return new Handler($method, $params);