Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/dependency-injection/Compiler/ResolveInvalidReferencesPass.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 |
---|---|
11 | 11 |
12 namespace Symfony\Component\DependencyInjection\Compiler; | 12 namespace Symfony\Component\DependencyInjection\Compiler; |
13 | 13 |
14 use Symfony\Component\DependencyInjection\Argument\ArgumentInterface; | 14 use Symfony\Component\DependencyInjection\Argument\ArgumentInterface; |
15 use Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument; | 15 use Symfony\Component\DependencyInjection\Argument\ServiceClosureArgument; |
16 use Symfony\Component\DependencyInjection\ContainerBuilder; | |
16 use Symfony\Component\DependencyInjection\ContainerInterface; | 17 use Symfony\Component\DependencyInjection\ContainerInterface; |
17 use Symfony\Component\DependencyInjection\Definition; | 18 use Symfony\Component\DependencyInjection\Definition; |
19 use Symfony\Component\DependencyInjection\Exception\RuntimeException; | |
18 use Symfony\Component\DependencyInjection\Reference; | 20 use Symfony\Component\DependencyInjection\Reference; |
19 use Symfony\Component\DependencyInjection\ContainerBuilder; | |
20 use Symfony\Component\DependencyInjection\Exception\RuntimeException; | |
21 | 21 |
22 /** | 22 /** |
23 * Emulates the invalid behavior if the reference is not found within the | 23 * Emulates the invalid behavior if the reference is not found within the |
24 * container. | 24 * container. |
25 * | 25 * |
61 return $value; | 61 return $value; |
62 } | 62 } |
63 $value->setArguments($this->processValue($value->getArguments(), 0)); | 63 $value->setArguments($this->processValue($value->getArguments(), 0)); |
64 $value->setProperties($this->processValue($value->getProperties(), 1)); | 64 $value->setProperties($this->processValue($value->getProperties(), 1)); |
65 $value->setMethodCalls($this->processValue($value->getMethodCalls(), 2)); | 65 $value->setMethodCalls($this->processValue($value->getMethodCalls(), 2)); |
66 } elseif (is_array($value)) { | 66 } elseif (\is_array($value)) { |
67 $i = 0; | 67 $i = 0; |
68 | 68 |
69 foreach ($value as $k => $v) { | 69 foreach ($value as $k => $v) { |
70 try { | 70 try { |
71 if (false !== $i && $k !== $i++) { | 71 if (false !== $i && $k !== $i++) { |