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