This commit is contained in:
2021-02-22 19:53:04 +08:00
parent 61249998dd
commit edf66b4db2
+1 -3
View File
@@ -132,9 +132,7 @@ class Annotation extends Component
} }
} }
$def = Snowflake::getDi()->getDependencies($class); $object = $reflect->newInstance();
$object = $reflect->newInstance($def);
$this->resolveMethod($reflect, $class, $alias, $object); $this->resolveMethod($reflect, $class, $alias, $object);
return $this->targets($reflect); return $this->targets($reflect);
} catch (\Throwable $throwable) { } catch (\Throwable $throwable) {