"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/ResolveReferencesToAliasesPass.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

ResolveReferencesToAliasesPass.php  (phplist-3.4.5.tgz):ResolveReferencesToAliasesPass.php  (phplist-3.4.6.tgz)
skipping to change at line 59 skipping to change at line 59
return new Reference($defId, $value->getInvalidBehavior()); return new Reference($defId, $value->getInvalidBehavior());
} }
} }
return parent::processValue($value); return parent::processValue($value);
} }
/** /**
* Resolves an alias into a definition id. * Resolves an alias into a definition id.
* *
* @param string $id The definition or alias id to resolve * @param string $id The definition or alias id to resolve
* @param ContainerBuilder $container
* *
* @return string The definition id with aliases resolved * @return string The definition id with aliases resolved
*/ */
private function getDefinitionId($id, ContainerBuilder $container) private function getDefinitionId($id, ContainerBuilder $container)
{ {
$seen = []; $seen = [];
while ($container->hasAlias($id)) { while ($container->hasAlias($id)) {
if (isset($seen[$id])) { if (isset($seen[$id])) {
throw new ServiceCircularReferenceException($id, array_merge(arr ay_keys($seen), [$id])); throw new ServiceCircularReferenceException($id, array_merge(arr ay_keys($seen), [$id]));
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

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