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