变更
This commit is contained in:
@@ -72,7 +72,7 @@ class ControllerInterpreter
|
||||
$container = \Kiri::getDi();
|
||||
$parameters = $container->getMethodParams($reflectionMethod);
|
||||
|
||||
return new Handler([$reflectionClass->getName(), $reflectionMethod->getName()], $parameters);
|
||||
return new Handler([$container->get($reflectionClass->getName()), $reflectionMethod->getName()], $parameters);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -179,10 +179,11 @@ class RouterCollector implements \ArrayAccess, \IteratorAggregate
|
||||
/**
|
||||
* @param string $path
|
||||
* @return Handler
|
||||
* @throws ReflectionException
|
||||
*/
|
||||
private function NotFundHandler(string $path): Handler
|
||||
{
|
||||
return new Handler([NotFoundController::class, 'fail'], []);
|
||||
return new Handler([di(NotFoundController::class), 'fail'], []);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user