This commit is contained in:
2021-02-22 19:40:43 +08:00
parent 76ddfbf8b3
commit 8081050485
+3 -1
View File
@@ -125,7 +125,9 @@ class Annotation extends Component
return [];
}
$object = $reflect->newInstance();
$def = Snowflake::getDi()->getDependencies($class);
$object = $reflect->newInstanceArgs($def);
$this->resolveMethod($reflect, $class, $alias, $object);
return $this->targets($reflect);
} catch (\Throwable $throwable) {