From 621e5f7c95803fb26ecc4d9f826c2bdd3a7f97f2 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 01:45:58 +0800 Subject: [PATCH] modify --- System/Di/Container.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/System/Di/Container.php b/System/Di/Container.php index bda0bf19..f4f78455 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -9,6 +9,7 @@ declare(strict_types=1); namespace Snowflake\Di; +use HttpServer\Http\HttpHeaders; use ReflectionClass; use Snowflake\Abstracts\BaseObject; use ReflectionException; @@ -98,6 +99,9 @@ class Container extends BaseObject $dependencies = $this->_constructs[$class] ?? []; if (empty($config)) { + if ($class == HttpHeaders::class) { + var_dump($dependencies); + } return $reflect->newInstanceArgs($dependencies); } $this->_param[$class] = $config;