Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/dependency-injection/Compiler/ResolveHotPathPass.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 |
---|---|
22 * @author Nicolas Grekas <p@tchwork.com> | 22 * @author Nicolas Grekas <p@tchwork.com> |
23 */ | 23 */ |
24 class ResolveHotPathPass extends AbstractRecursivePass | 24 class ResolveHotPathPass extends AbstractRecursivePass |
25 { | 25 { |
26 private $tagName; | 26 private $tagName; |
27 private $resolvedIds = array(); | 27 private $resolvedIds = []; |
28 | 28 |
29 public function __construct($tagName = 'container.hot_path') | 29 public function __construct($tagName = 'container.hot_path') |
30 { | 30 { |
31 $this->tagName = $tagName; | 31 $this->tagName = $tagName; |
32 } | 32 } |
38 { | 38 { |
39 try { | 39 try { |
40 parent::process($container); | 40 parent::process($container); |
41 $container->getDefinition('service_container')->clearTag($this->tagName); | 41 $container->getDefinition('service_container')->clearTag($this->tagName); |
42 } finally { | 42 } finally { |
43 $this->resolvedIds = array(); | 43 $this->resolvedIds = []; |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
47 /** | 47 /** |
48 * {@inheritdoc} | 48 * {@inheritdoc} |