eee
This commit is contained in:
+2
-2
@@ -14,6 +14,7 @@ use Closure;
|
||||
use Exception;
|
||||
use Kiri\Di\Interface\InjectTargetInterface;
|
||||
use Kiri\Router\Interface\ValidatorInterface;
|
||||
use Kiri\Server\Task\OnTaskFinish;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use ReflectionAttribute;
|
||||
use ReflectionClass;
|
||||
@@ -167,10 +168,9 @@ class Container implements ContainerInterface
|
||||
}
|
||||
|
||||
if (($handler = $reflect->getConstructor()) !== null) {
|
||||
$construct = $this->mergeParams($this->getMethodParams($handler), $construct);
|
||||
$construct = $this->getMethodParams($handler);
|
||||
}
|
||||
|
||||
var_dump($construct);
|
||||
$newInstance = $reflect->newInstanceArgs($construct);
|
||||
|
||||
return $this->runInit($reflect, static::configure($newInstance, $config));
|
||||
|
||||
Reference in New Issue
Block a user