This commit is contained in:
2021-08-18 13:37:27 +08:00
parent 6e01b437e2
commit ea8d9b22cd
+5
View File
@@ -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;
}