Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/dependency-injection/Compiler/ReplaceAliasByActualDefinitionPass.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
31 * @throws InvalidArgumentException if the service definition does not exist | 31 * @throws InvalidArgumentException if the service definition does not exist |
32 */ | 32 */ |
33 public function process(ContainerBuilder $container) | 33 public function process(ContainerBuilder $container) |
34 { | 34 { |
35 // First collect all alias targets that need to be replaced | 35 // First collect all alias targets that need to be replaced |
36 $seenAliasTargets = array(); | 36 $seenAliasTargets = []; |
37 $replacements = array(); | 37 $replacements = []; |
38 foreach ($container->getAliases() as $definitionId => $target) { | 38 foreach ($container->getAliases() as $definitionId => $target) { |
39 $targetId = $container->normalizeId($target); | 39 $targetId = $container->normalizeId($target); |
40 // Special case: leave this target alone | 40 // Special case: leave this target alone |
41 if ('service_container' === $targetId) { | 41 if ('service_container' === $targetId) { |
42 continue; | 42 continue; |
67 $replacements[$targetId] = $definitionId; | 67 $replacements[$targetId] = $definitionId; |
68 } | 68 } |
69 $this->replacements = $replacements; | 69 $this->replacements = $replacements; |
70 | 70 |
71 parent::process($container); | 71 parent::process($container); |
72 $this->replacements = array(); | 72 $this->replacements = []; |
73 } | 73 } |
74 | 74 |
75 /** | 75 /** |
76 * {@inheritdoc} | 76 * {@inheritdoc} |
77 */ | 77 */ |