diff --git a/typo3/sysext/core/Documentation/Changelog/9.2/Deprecation-83736-DeprecatedGlobalsTYPO3_REQUEST.rst b/typo3/sysext/core/Documentation/Changelog/9.2/Deprecation-83736-DeprecatedGlobalsTYPO3_REQUEST.rst deleted file mode 100644 index 41167dfe62a8ff1dcdd0b921609632f0c04539a3..0000000000000000000000000000000000000000 --- a/typo3/sysext/core/Documentation/Changelog/9.2/Deprecation-83736-DeprecatedGlobalsTYPO3_REQUEST.rst +++ /dev/null @@ -1,36 +0,0 @@ -.. include:: ../../Includes.txt - -====================================================== -Deprecation: #83736 - Deprecated globals TYPO3_REQUEST -====================================================== - -See :issue:`83736` - -Description -=========== - -The :php:`ServerRequestInterface $request` is available as :php:`$GLOBALS['TYPO3_REQUEST']` -in HTTP requests. This global is available in a transition phase only and will be removed later. - -Extension authors are discouraged to use that global and the extension scanner marks any usage as deprecated. - - -Impact -====== - -Accessing :php:`$GLOBALS['TYPO3_REQUEST']` is discouraged. - - -Affected Installations -====================== - -Instances with extensions using :php:`$GLOBALS['TYPO3_REQUEST']`. - - -Migration -========= - -Controller classes for HTTP requests retrieve the request object. Access should either be done from within controllers -or by passing :php:`$request` to service classes that need to access values from :php:`$request`. - -.. index:: PHP-API, FullyScanned diff --git a/typo3/sysext/core/Documentation/Changelog/9.2/Feature-83736-ExtendedPSR-7RequestsWithTYPO3ServerParameters.rst b/typo3/sysext/core/Documentation/Changelog/9.2/Feature-83736-ExtendedPSR-7RequestsWithTYPO3ServerParameters.rst index b7f0ab38e3bb26068df118011b7df419ce45adcf..ddec2508a6e32a8bebcc554329e3b28efe8e77bc 100644 --- a/typo3/sysext/core/Documentation/Changelog/9.2/Feature-83736-ExtendedPSR-7RequestsWithTYPO3ServerParameters.rst +++ b/typo3/sysext/core/Documentation/Changelog/9.2/Feature-83736-ExtendedPSR-7RequestsWithTYPO3ServerParameters.rst @@ -25,9 +25,8 @@ is given to controllers, example: The request object is also available as a global variable in :php:`$GLOBALS['TYPO3_REQUEST']`. This is a workaround for the core which has to access the server parameters at places where $request is not available. So, while this object is -globally available during any HTTP request, it is considered bad practice to use it, and the extension scanner will mark -an access to this global variable as deprecated. The global object will vanish later if the core code has been -refactored enough to not rely on it anymore. +globally available during any HTTP request, it is considered bad practice to use it. The global object will vanish +later if the core code has been refactored enough to not rely on it anymore. For now, class :php:`NormalizedParams` is a one-to-one transition of :php:`GeneralUtility::getIndpEnv()`, the old arguments can be substituted with these calls: diff --git a/typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayGlobalMatcher.php b/typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayGlobalMatcher.php index 8fd703a8b5316e1e9693bf095ee0a5aa6e520ecc..8cac9884471aa904374cb63a779945bd19ff8cb1 100644 --- a/typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayGlobalMatcher.php +++ b/typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayGlobalMatcher.php @@ -16,11 +16,6 @@ return [ 'Breaking-82893-RemoveGlobalVariablePARSETIME_START.rst' ], ], - '$GLOBALS[\'TYPO3_REQUEST\']' => [ - 'restFiles' => [ - 'Deprecation-83736-DeprecatedGlobalsTYPO3_REQUEST.rst', - ], - ], '$GLOBALS[\'TYPO3_LOADED_EXT\']' => [ 'restFiles' => [ 'Deprecation-86404-GLOBALSTYPO3_LOADED_EXT.rst',