[TASK] Use TSFE for fetching site and language
There are various places where TSFE is instantiated, and holding the proper information about a site and the current language. Using the properties from there avoid using $GLOBALS[TYPO3_REQUEST] in "safe" places. Resolves: #89745 Releases: master Change-Id: Id2bb16ce376172bdf563fed0c7ddd0bf84415506 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62379 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Susanne Moog <look@susi.dev> Tested-by:
Daniel Goerz <daniel.goerz@posteo.de> Reviewed-by:
Susanne Moog <look@susi.dev> Reviewed-by:
Daniel Goerz <daniel.goerz@posteo.de>
Showing
- typo3/sysext/felogin/Tests/Unit/Controller/FrontendLoginControllerTest.php 13 additions, 7 deletions...gin/Tests/Unit/Controller/FrontendLoginControllerTest.php
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 15 additions, 29 deletions.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php 3 additions, 23 deletionstypo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php 7 additions, 41 deletions...nd/Tests/Unit/ContentObject/ContentObjectRendererTest.php
- typo3/sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php 7 additions, 7 deletions.../sysext/frontend/Tests/Unit/Plugin/AbstractPluginTest.php
Please register or sign in to comment