This commit is contained in:
2023-04-16 02:18:22 +08:00
parent ca7ec312b9
commit dc08bcd81f
+3 -1
View File
@@ -158,7 +158,9 @@ class Container implements ContainerInterface
$object = self::configure($reflect->newInstanceArgs($construct), $config);
$this->resolveProperties($reflect, $object);
if (method_exists($object, 'init')) {
call_user_func([$object, 'init']);
}
return $object;
}