"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/di/Container.php" between
yii2-2.0.35.tar.gz and yii2-2.0.36.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

Container.php  (yii2-2.0.35):Container.php  (yii2-2.0.36)
skipping to change at line 489 skipping to change at line 489
{ {
foreach ($dependencies as $index => $dependency) { foreach ($dependencies as $index => $dependency) {
if ($dependency instanceof Instance) { if ($dependency instanceof Instance) {
if ($dependency->id !== null) { if ($dependency->id !== null) {
$dependencies[$index] = $this->get($dependency->id); $dependencies[$index] = $this->get($dependency->id);
} elseif ($reflection !== null) { } elseif ($reflection !== null) {
$name = $reflection->getConstructor()->getParameters()[$inde x]->getName(); $name = $reflection->getConstructor()->getParameters()[$inde x]->getName();
$class = $reflection->getName(); $class = $reflection->getName();
throw new InvalidConfigException("Missing required parameter \"$name\" when instantiating \"$class\"."); throw new InvalidConfigException("Missing required parameter \"$name\" when instantiating \"$class\".");
} }
} elseif (is_array($dependency)) {
$dependencies[$index] = $this->resolveDependencies($dependency,
$reflection);
} }
} }
return $dependencies; return $dependencies;
} }
/** /**
* Invoke a callback with resolving dependencies in parameters. * Invoke a callback with resolving dependencies in parameters.
* *
* This methods allows invoking a callback and let type hinted parameter nam es to be * This methods allows invoking a callback and let type hinted parameter nam es to be
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)