diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index 19f1154b..2c6f7320 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -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) {