8000 [DI] Add missing deprecation on Extension::getClassesToCompile · symfony/symfony@95fb929 · GitHub
[go: up one dir, main page]

Skip to content

Commit 95fb929

Browse files
[DI] Add missing deprecation on Extension::getClassesToCompile
1 parent 4a76669 commit 95fb929

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

UPGRADE-3.3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

UPGRADE-4.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/Symfony/Component/HttpKernel/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1616
3.2.0

src/Symfony/Component/HttpKernel/DependencyInjection/Extension.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
0