File tree 4 files changed +9
-3
lines changed
src/Symfony/Component/HttpKernel
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ HttpKernel
266
266
* Deprecated the ` Kernel::getRootDir() ` method. Use the new ` Kernel::getProjectDir() `
267
267
method instead.
268
268
269
- * The ` Extension::addClassesToCompile() ` method has been deprecated and will be removed in 4.0.
269
+ * The ` Extension::addClassesToCompile() ` and ` Extension::getClassesToCompile() ` methods have been deprecated and will be removed in 4.0.
270
270
271
271
* The ` Psr6CacheClearer::addPool() ` method has been deprecated. Pass an array
272
272
of pools indexed by name to the constructor instead.
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ HttpKernel
376
376
* Removed the ` Kernel::getRootDir() ` method. Use the ` Kernel::getProjectDir() `
377
377
method instead.
378
378
379
- * The ` Extension::addClassesToCompile() ` method has been removed.
379
+ * The ` Extension::addClassesToCompile() ` and ` Extension::getClassesToCompile() ` methods have been removed.
380
380
381
381
* Possibility to pass non-scalar values as URI attributes to the ESI and SSI
382
382
renderers has been removed. The inline fragment renderer should be used with
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ CHANGELOG
10
10
* deprecated the special ` SYMFONY__ ` environment variables
11
11
* added the possibility to change the query string parameter used by ` UriSigner `
12
12
* deprecated ` LazyLoadingFragmentHandler::addRendererService() `
13
- * deprecated ` Extension::addClassesToCompile() `
13
+ * deprecated ` Extension::addClassesToCompile() ` and ` Extension::getClassesToCompile() `
14
14
* deprecated ` Psr6CacheClearer::addPool() `
15
15
16
16
3.2.0
Original file line number Diff line number Diff line change @@ -27,9 +27,15 @@ abstract class Extension extends BaseExtension
27
27
* Gets the classes to cache.
28
28
*
29
29
* @return array An array of classes
30
+ *
31
+ * @deprecated since version 3.3, to be removed in 4.0.
30
32
*/
31
33
public function getClassesToCompile ()
32
34
{
35
+ if (PHP_VERSION_ID >= 70000 ) {
36
+ @trigger_error (__METHOD__ .'() is deprecated since version 3.3, to be removed in 4.0. ' , E_USER_DEPRECATED );
37
+ }
38
+
33
39
return $ this ->classes ;
34
40
}
35
41
You can’t perform that action at this time.
0 commit comments