变更
This commit is contained in:
+3
-1
@@ -158,7 +158,9 @@ class Container implements ContainerInterface
|
|||||||
$object = self::configure($reflect->newInstanceArgs($construct), $config);
|
$object = self::configure($reflect->newInstanceArgs($construct), $config);
|
||||||
|
|
||||||
$this->resolveProperties($reflect, $object);
|
$this->resolveProperties($reflect, $object);
|
||||||
|
if (method_exists($object, 'init')) {
|
||||||
|
call_user_func([$object, 'init']);
|
||||||
|
}
|
||||||
return $object;
|
return $object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user