This commit is contained in:
2021-09-29 17:32:56 +08:00
parent db56419dbc
commit 47be3285c5
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ use ReflectionProperty;
{
if (!Kiri::app()->has($this->value)) {
if (!empty($this->construct)) {
return Kiri::getDi()->newObject($this->value, $this->construct);
return Kiri::getDi()->create($this->value, $this->construct);
}
return Kiri::getDi()->get($this->value);
} else {