File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
src/Symfony/Component/HttpKernel Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ HttpKernel
266266 * Deprecated the ` Kernel::getRootDir() ` method. Use the new ` Kernel::getProjectDir() `
267267 method instead.
268268
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.
270270
271271 * The ` Psr6CacheClearer::addPool() ` method has been deprecated. Pass an array
272272 of pools indexed by name to the constructor instead.
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ HttpKernel
376376 * Removed the ` Kernel::getRootDir() ` method. Use the ` Kernel::getProjectDir() `
377377 method instead.
378378
379- * The ` Extension::addClassesToCompile() ` method has been removed.
379+ * The ` Extension::addClassesToCompile() ` and ` Extension::getClassesToCompile() ` methods have been removed.
380380
381381 * Possibility to pass non-scalar values as URI attributes to the ESI and SSI
382382 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
1010 * deprecated the special ` SYMFONY__ ` environment variables
1111 * added the possibility to change the query string parameter used by ` UriSigner `
1212 * deprecated ` LazyLoadingFragmentHandler::addRendererService() `
13- * deprecated ` Extension::addClassesToCompile() `
13+ * deprecated ` Extension::addClassesToCompile() ` and ` Extension::getClassesToCompile() `
1414 * deprecated ` Psr6CacheClearer::addPool() `
1515
16163.2.0
Original file line number Diff line number Diff line change @@ -27,9 +27,15 @@ abstract class Extension extends BaseExtension
2727 * Gets the classes to cache.
2828 *
2929 * @return array An array of classes
30+ *
31+ * @deprecated since version 3.3, to be removed in 4.0.
3032 */
3133 public function getClassesToCompile ()
3234 {
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+
3339 return $ this ->classes ;
3440 }
3541
You can’t perform that action at this time.
0 commit comments