From ea8d9b22cd8f58b4bceb6f6d247cfc6f376d2a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 18 Aug 2021 13:37:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Di/Container.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/System/Di/Container.php b/System/Di/Container.php index fcae53c4..575cdb08 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -11,6 +11,7 @@ namespace Kiri\Di; use Annotation\Inject; use Exception; +use Http\Server; use Kiri\Abstracts\BaseObject; use Kiri\Exception\NotFindClassException; use Kiri\Kiri; @@ -200,6 +201,10 @@ class Container extends BaseObject implements ContainerInterface foreach ($this->getPropertyNote($reflect) as $property => $inject) { /** @var Inject $inject */ $inject->execute($object, $property); + + if ($object::class == Server::class){ + var_dump($object, $property); + } } return $object; }