comparison vendor/symfony/dependency-injection/Definition.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children 1fec387a4317
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
24 private $class; 24 private $class;
25 private $file; 25 private $file;
26 private $factory; 26 private $factory;
27 private $shared = true; 27 private $shared = true;
28 private $deprecated = false; 28 private $deprecated = false;
29 private $deprecationTemplate = 'The "%service_id%" service is deprecated. You should stop using it, as it will soon be removed.'; 29 private $deprecationTemplate;
30 private $properties = array(); 30 private $properties = array();
31 private $calls = array(); 31 private $calls = array();
32 private $configurator; 32 private $configurator;
33 private $tags = array(); 33 private $tags = array();
34 private $public = true; 34 private $public = true;
37 private $lazy = false; 37 private $lazy = false;
38 private $decoratedService; 38 private $decoratedService;
39 private $autowired = false; 39 private $autowired = false;
40 private $autowiringTypes = array(); 40 private $autowiringTypes = array();
41 41
42 private static $defaultDeprecationTemplate = 'The "%service_id%" service is deprecated. You should stop using it, as it will soon be removed.';
43
42 protected $arguments; 44 protected $arguments;
43 45
44 /** 46 /**
45 * @param string|null $class The service class 47 * @param string|null $class The service class
46 * @param array $arguments An array of arguments to pass to the service constructor 48 * @param array $arguments An array of arguments to pass to the service constructor
608 * 610 *
609 * @return string 611 * @return string
610 */ 612 */
611 public function getDeprecationMessage($id) 613 public function getDeprecationMessage($id)
612 { 614 {
613 return str_replace('%service_id%', $id, $this->deprecationTemplate); 615 return str_replace('%service_id%', $id, $this->deprecationTemplate ?: self::$defaultDeprecationTemplate);
614 } 616 }
615 617
616 /** 618 /**
617 * Sets a configurator to call after the service is fully initialized. 619 * Sets a configurator to call after the service is fully initialized.
618 * 620 *