[FEATURE] Add normalized server parameters to PSR-7 requests
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Deprecation-83736-DeprecatedGlobalsTYPO3_REQUEST.rst
1 .. include:: ../../Includes.txt
2
3 ======================================================
4 Deprecation: #83736 - Deprecated globals TYPO3_REQUEST
5 ======================================================
6
7 See :issue:`83736`
8
9 Description
10 ===========
11
12 The :php:`ServerRequestInterface $request` is available as :php:`$GLOBALS['TYPO3_REQUEST']`
13 in HTTP requests. This global is available in a transition phase only and will be removed later.
14
15 Extension authors are discouraged to use that global and the extension scanner marks any
16 usage as deprecated.
17
18
19 Impact
20 ======
21
22 Accessing :php:`$GLOBALS['TYPO3_REQUEST']` is discouraged.
23
24
25 Affected Installations
26 ======================
27
28 Instances with extensions using :php:`$GLOBALS['TYPO3_REQUEST']`.
29
30
31 Migration
32 =========
33
34 Controller classes for HTTP requests retrieve the request object. Access should either be
35 done from within controllers or by passing :php:`$request` to service classes that
36 need to access values from :php:`$request`.
37
38 .. index:: PHP-API, FullyScanned