Deprecation: #89468 - Deprecate injection of EnvironmentService in Web Request¶
See forge#89468
Description¶
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.
Impact¶
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
manually.
Affected Installations¶
All installations that implement subclasses of \TYPO3\CMS\Extbase\Mvc\Web\Response
and expect an instance of the
EnvironmentService
to be injected into \TYPO3\CMS\Extbase\Mvc\Web\Response::$environmentService
.
Migration¶
The environment service needs to be injected manually in the subclass.