Deprecation: #100596 - GeneralUtility::_GET()¶
been marked as deprecated and should not be used any longer.
Modern code should access GET and POST data from the PSR-7
and should avoid accessing superglobals
$_GET directly. This also avoids
future side-effects when using sub-requests. Some
helper methods like
_GET() violate this, using them is considered a technical
debt. They are being phased out.
Calling the method from PHP code will log a PHP deprecation level entry, the method will be removed with TYPO3 v13.
TYPO3 installations with third-party extensions using
are affected, typically in TYPO3 installations which
have been migrated to the latest TYPO3 Core versions and
haven't been adapted properly yet.
The extension scanner will find usages with a strong match.
GeneralUtility::_GET() is a helper method that retrieves
GET query arguments and returns the value.
The same result can be achieved by retrieving arguments from the request object.
An instance of the PSR-7
ServerRequestInterface is handed over to
controllers by TYPO3 Core's PSR-15
and middleware implementations, and is available in various related scopes
like the frontend
use TYPO3\CMS\Core\Utility\GeneralUtility; // Before $value = GeneralUtility::_GET('tx_scheduler'); // After $value = $request->getQueryParams()['tx_scheduler']) ?? null;