From 3f2d3b0f04271e4e8bc14e3258adc399ab92c70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 11 Jul 2025 15:22:52 +0800 Subject: [PATCH] eee --- Container.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));