1.. include:: ../../Includes.txt
2
3===========================================================================
4Deprecation: #84295 - Use ServerRequestInterface in File/EditFileController
5===========================================================================
6
7See :issue:`84295`
8
9
10Description
11===========
12
13A series of class properties has been set to protected.
14They 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
23All methods not used as entry points by :php:`TYPO3\CMS\Backend\Http\RouteDispatcher` will be
24removed 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
29Impact
30======
31
32Calling 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
36Affected Installations
37======================
38
39The extension scanner will find most usages, but may also find some false positives. The most
40common property and method names like :php:`$title` are not registered and will not be found
41if an extension uses that on an instance of :php:`FileEditController`. In general all extensions
42that set properties or call methods except :php:`mainAction()` are affected.
43
44
45Migration
46=========
47
48In general, extensions should not instantiate and re-use controllers of the core. Existing
49usages should be rewritten to be free of calls like these.
50
51.. index:: Backend, PHP-API, PartiallyScanned
52