Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/http-kernel/DependencyInjection/FragmentRendererPass.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
9 * file that was distributed with this source code. | 9 * file that was distributed with this source code. |
10 */ | 10 */ |
11 | 11 |
12 namespace Symfony\Component\HttpKernel\DependencyInjection; | 12 namespace Symfony\Component\HttpKernel\DependencyInjection; |
13 | 13 |
14 use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
14 use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass; | 15 use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass; |
15 use Symfony\Component\DependencyInjection\ContainerBuilder; | 16 use Symfony\Component\DependencyInjection\ContainerBuilder; |
16 use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
17 use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; | 17 use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; |
18 use Symfony\Component\DependencyInjection\Reference; | 18 use Symfony\Component\DependencyInjection\Reference; |
19 use Symfony\Component\HttpKernel\Fragment\FragmentRendererInterface; | 19 use Symfony\Component\HttpKernel\Fragment\FragmentRendererInterface; |
20 | 20 |
21 /** | 21 /** |
43 if (!$container->hasDefinition($this->handlerService)) { | 43 if (!$container->hasDefinition($this->handlerService)) { |
44 return; | 44 return; |
45 } | 45 } |
46 | 46 |
47 $definition = $container->getDefinition($this->handlerService); | 47 $definition = $container->getDefinition($this->handlerService); |
48 $renderers = array(); | 48 $renderers = []; |
49 foreach ($container->findTaggedServiceIds($this->rendererTag, true) as $id => $tags) { | 49 foreach ($container->findTaggedServiceIds($this->rendererTag, true) as $id => $tags) { |
50 $def = $container->getDefinition($id); | 50 $def = $container->getDefinition($id); |
51 $class = $container->getParameterBag()->resolveValue($def->getClass()); | 51 $class = $container->getParameterBag()->resolveValue($def->getClass()); |
52 | 52 |
53 if (!$r = $container->getReflectionClass($class)) { | 53 if (!$r = $container->getReflectionClass($class)) { |