Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/http-kernel/DependencyInjection/Extension.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
25 | 25 |
26 /** | 26 /** |
27 * Gets the classes to cache. | 27 * Gets the classes to cache. |
28 * | 28 * |
29 * @return array An array of classes | 29 * @return array An array of classes |
30 * | |
31 * @deprecated since version 3.3, to be removed in 4.0. | |
30 */ | 32 */ |
31 public function getClassesToCompile() | 33 public function getClassesToCompile() |
32 { | 34 { |
35 if (\PHP_VERSION_ID >= 70000) { | |
36 @trigger_error(__METHOD__.'() is deprecated since Symfony 3.3, to be removed in 4.0.', E_USER_DEPRECATED); | |
37 } | |
38 | |
33 return $this->classes; | 39 return $this->classes; |
34 } | 40 } |
35 | 41 |
36 /** | 42 /** |
37 * Gets the annotated classes to cache. | 43 * Gets the annotated classes to cache. |
45 | 51 |
46 /** | 52 /** |
47 * Adds classes to the class cache. | 53 * Adds classes to the class cache. |
48 * | 54 * |
49 * @param array $classes An array of class patterns | 55 * @param array $classes An array of class patterns |
56 * | |
57 * @deprecated since version 3.3, to be removed in 4.0. | |
50 */ | 58 */ |
51 public function addClassesToCompile(array $classes) | 59 public function addClassesToCompile(array $classes) |
52 { | 60 { |
61 if (\PHP_VERSION_ID >= 70000) { | |
62 @trigger_error(__METHOD__.'() is deprecated since Symfony 3.3, to be removed in 4.0.', E_USER_DEPRECATED); | |
63 } | |
64 | |
53 $this->classes = array_merge($this->classes, $classes); | 65 $this->classes = array_merge($this->classes, $classes); |
54 } | 66 } |
55 | 67 |
56 /** | 68 /** |
57 * Adds annotated classes to the class cache. | 69 * Adds annotated classes to the class cache. |