diff --git a/Container.php b/Container.php index 927a122..b48f355 100644 --- a/Container.php +++ b/Container.php @@ -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));