comparison vendor/symfony/dependency-injection/Loader/Configurator/AbstractServiceConfigurator.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
16 16
17 abstract class AbstractServiceConfigurator extends AbstractConfigurator 17 abstract class AbstractServiceConfigurator extends AbstractConfigurator
18 { 18 {
19 protected $parent; 19 protected $parent;
20 protected $id; 20 protected $id;
21 private $defaultTags = array(); 21 private $defaultTags = [];
22 22
23 public function __construct(ServicesConfigurator $parent, Definition $definition, $id = null, array $defaultTags = array()) 23 public function __construct(ServicesConfigurator $parent, Definition $definition, $id = null, array $defaultTags = [])
24 { 24 {
25 $this->parent = $parent; 25 $this->parent = $parent;
26 $this->definition = $definition; 26 $this->definition = $definition;
27 $this->id = $id; 27 $this->id = $id;
28 $this->defaultTags = $defaultTags; 28 $this->defaultTags = $defaultTags;
34 foreach ($this->defaultTags as $name => $attributes) { 34 foreach ($this->defaultTags as $name => $attributes) {
35 foreach ($attributes as $attributes) { 35 foreach ($attributes as $attributes) {
36 $this->definition->addTag($name, $attributes); 36 $this->definition->addTag($name, $attributes);
37 } 37 }
38 } 38 }
39 $this->defaultTags = array(); 39 $this->defaultTags = [];
40 } 40 }
41 41
42 /** 42 /**
43 * Registers a service. 43 * Registers a service.
44 * 44 *