[TASK] Use ServerRequestInterface in File/EditFileController
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Deprecation-84295-UseServerRequestInterfaceInFileEditFileController.rst
1 .. include:: ../../Includes.txt
2
3 ===========================================================================
4 Deprecation: #84295 - Use ServerRequestInterface in File/EditFileController
5 ===========================================================================
6
7 See :issue:`84295`
8
9
10 Description
11 ===========
12
13 A series of class properties has been set to protected.
14 They will throw deprecation warnings if called public from outside:
15
16 * :php:`$origTarget`
17 * :php:`$target`
18 * :php:`$doc`
19 * [not scanned] :php:`$returnUrl`
20 * [not scanned] :php:`$content`
21 * [not scanned] :php:`$title`
22
23 All methods not used as entry points by :php:`TYPO3\CMS\Backend\Http\RouteDispatcher` will be
24 removed or set to protected in v10 and throw deprecation warnings if used from a third party:
25
26 * [not scanned] :php:`main()`
27 * :php: `getButtons()`
28
29 Impact
30 ======
31
32 Calling one of the above methods or accessing one of the above properties on an instance of
33 :php:`FileEditController` will throw a deprecation warning in v9 and a PHP fatal in v10.
34
35
36 Affected Installations
37 ======================
38
39 The extension scanner will find most usages, but may also find some false positives. The most
40 common property and method names like :php:`$title` are not registered and will not be found
41 if an extension uses that on an instance of :php:`FileEditController`. In general all extensions
42 that set properties or call methods except :php:`mainAction()` are affected.
43
44
45 Migration
46 =========
47
48 In general, extensions should not instantiate and re-use controllers of the core. Existing
49 usages should be rewritten to be free of calls like these.
50
51 .. index:: Backend, PHP-API, PartiallyScanned