eee
This commit is contained in:
@@ -20,14 +20,6 @@ class ControllerInterpreter
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(public ContainerInterface $container)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param object $class
|
||||
* @param string|ReflectionMethod $method
|
||||
@@ -38,7 +30,7 @@ class ControllerInterpreter
|
||||
public function addRouteByString(object $class, string|ReflectionMethod $method, ?ReflectionClass $reflection = null): Handler
|
||||
{
|
||||
if (is_null($reflection)) {
|
||||
$reflection = $this->container->getReflectionClass($class::class);
|
||||
$reflection = Kiri::getDi()->getReflectionClass($class::class);
|
||||
}
|
||||
return $this->resolveMethod($class, $method, $reflection);
|
||||
}
|
||||
@@ -71,7 +63,7 @@ class ControllerInterpreter
|
||||
public function addRouteByObject(object $class, string|ReflectionMethod $method, ?ReflectionClass $reflection = null): Handler
|
||||
{
|
||||
if (is_null($reflection)) {
|
||||
$reflection = $this->container->getReflectionClass($class::class);
|
||||
$reflection = Kiri::getDi()->getReflectionClass($class::class);
|
||||
}
|
||||
return $this->resolveMethod($class, $method, $reflection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user