comparison vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.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
18 * 18 *
19 * @final since version 3.4 19 * @final since version 3.4
20 */ 20 */
21 class CacheWarmerAggregate implements CacheWarmerInterface 21 class CacheWarmerAggregate implements CacheWarmerInterface
22 { 22 {
23 protected $warmers = array(); 23 protected $warmers = [];
24 protected $optionalsEnabled = false; 24 protected $optionalsEnabled = false;
25 private $triggerDeprecation = false; 25 private $triggerDeprecation = false;
26 26
27 public function __construct($warmers = array()) 27 public function __construct($warmers = [])
28 { 28 {
29 foreach ($warmers as $warmer) { 29 foreach ($warmers as $warmer) {
30 $this->add($warmer); 30 $this->add($warmer);
31 } 31 }
32 $this->triggerDeprecation = true; 32 $this->triggerDeprecation = true;
68 */ 68 */
69 public function setWarmers(array $warmers) 69 public function setWarmers(array $warmers)
70 { 70 {
71 @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.4 and will be removed in 4.0, inject the list of clearers as a constructor argument instead.', __METHOD__), E_USER_DEPRECATED); 71 @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.4 and will be removed in 4.0, inject the list of clearers as a constructor argument instead.', __METHOD__), E_USER_DEPRECATED);
72 72
73 $this->warmers = array(); 73 $this->warmers = [];
74 foreach ($warmers as $warmer) { 74 foreach ($warmers as $warmer) {
75 $this->add($warmer); 75 $this->add($warmer);
76 } 76 }
77 } 77 }
78 78