Deprecation: #89468 - Deprecate injection of EnvironmentService in Web Request¶
See Issue #89468
The EnvironmentService is not needed any longer in the Web Request of Extbase, therefore the property and the injection method of said property have been marked as deprecated.
As of TYPO3 11.0, the property
\TYPO3\CMS\Extbase\Mvc\Web\Response::$environmentService will no longer exist. If the
environment service is needed in a subclass of
\TYPO3\CMS\Extbase\Mvc\Web\Response, it needs to be injected
All installations that implement subclasses of
\TYPO3\CMS\Extbase\Mvc\Web\Response and expect an instance of the
EnvironmentService`to be injected into :php:TYPO3CMSExtbaseMvcWebResponse::$environmentService`.
The environment service needs to be injected manually in the subclass.