[DI] Add missing deprecation on Extension::getClassesToCompile
This commit is contained in:
parent
4a766693a8
commit
95fb929c58
@ -266,7 +266,7 @@ HttpKernel
|
|||||||
* Deprecated the `Kernel::getRootDir()` method. Use the new `Kernel::getProjectDir()`
|
* Deprecated the `Kernel::getRootDir()` method. Use the new `Kernel::getProjectDir()`
|
||||||
method instead.
|
method instead.
|
||||||
|
|
||||||
* The `Extension::addClassesToCompile()` method has been deprecated and will be removed in 4.0.
|
* The `Extension::addClassesToCompile()` and `Extension::getClassesToCompile()` methods have been deprecated and will be removed in 4.0.
|
||||||
|
|
||||||
* The `Psr6CacheClearer::addPool()` method has been deprecated. Pass an array
|
* The `Psr6CacheClearer::addPool()` method has been deprecated. Pass an array
|
||||||
of pools indexed by name to the constructor instead.
|
of pools indexed by name to the constructor instead.
|
||||||
|
@ -376,7 +376,7 @@ HttpKernel
|
|||||||
* Removed the `Kernel::getRootDir()` method. Use the `Kernel::getProjectDir()`
|
* Removed the `Kernel::getRootDir()` method. Use the `Kernel::getProjectDir()`
|
||||||
method instead.
|
method instead.
|
||||||
|
|
||||||
* The `Extension::addClassesToCompile()` method has been removed.
|
* The `Extension::addClassesToCompile()` and `Extension::getClassesToCompile()` methods have been removed.
|
||||||
|
|
||||||
* Possibility to pass non-scalar values as URI attributes to the ESI and SSI
|
* Possibility to pass non-scalar values as URI attributes to the ESI and SSI
|
||||||
renderers has been removed. The inline fragment renderer should be used with
|
renderers has been removed. The inline fragment renderer should be used with
|
||||||
|
@ -10,7 +10,7 @@ CHANGELOG
|
|||||||
* deprecated the special `SYMFONY__` environment variables
|
* deprecated the special `SYMFONY__` environment variables
|
||||||
* added the possibility to change the query string parameter used by `UriSigner`
|
* added the possibility to change the query string parameter used by `UriSigner`
|
||||||
* deprecated `LazyLoadingFragmentHandler::addRendererService()`
|
* deprecated `LazyLoadingFragmentHandler::addRendererService()`
|
||||||
* deprecated `Extension::addClassesToCompile()`
|
* deprecated `Extension::addClassesToCompile()` and `Extension::getClassesToCompile()`
|
||||||
* deprecated `Psr6CacheClearer::addPool()`
|
* deprecated `Psr6CacheClearer::addPool()`
|
||||||
|
|
||||||
3.2.0
|
3.2.0
|
||||||
|
@ -27,9 +27,15 @@ abstract class Extension extends BaseExtension
|
|||||||
* Gets the classes to cache.
|
* Gets the classes to cache.
|
||||||
*
|
*
|
||||||
* @return array An array of classes
|
* @return array An array of classes
|
||||||
|
*
|
||||||
|
* @deprecated since version 3.3, to be removed in 4.0.
|
||||||
*/
|
*/
|
||||||
public function getClassesToCompile()
|
public function getClassesToCompile()
|
||||||
{
|
{
|
||||||
|
if (PHP_VERSION_ID >= 70000) {
|
||||||
|
@trigger_error(__METHOD__.'() is deprecated since version 3.3, to be removed in 4.0.', E_USER_DEPRECATED);
|
||||||
|
}
|
||||||
|
|
||||||
return $this->classes;
|
return $this->classes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user