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