diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-84411-TypoScriptReferenceLoaderRenamedToTypoScriptReferenceController.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-84411-TypoScriptReferenceLoaderRenamedToTypoScriptReferenceController.rst new file mode 100644 index 0000000000000000000000000000000000000000..28d35289057e05985344ae86279117c6dc411920 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-84411-TypoScriptReferenceLoaderRenamedToTypoScriptReferenceController.rst @@ -0,0 +1,35 @@ +.. include:: ../../Includes.txt + +======================================================================================== +Deprecation: #84411 - TypoScriptReferenceLoader renamed to TypoScriptReferenceController +======================================================================================== + +See :issue:`84411` + +Description +=========== + +The PHP class :php:`TYPO3\CMS\T3editor\TypoScriptReferenceLoader` has been renamed to +:php:`TYPO3\CMS\T3editor\Controller\TypoScriptReferenceController`. + + +Impact +====== + +The old class name has been registered as class alias and will still work. +Old class name usage however is discouraged and should be avoided, the +alias will vanish with core version 10. + + +Affected Installations +====================== + +Extensions which use the old class name are affected. The extension scanner will find affected extensions using the old class name. + + +Migration +========= + +Use new class name instead. + +.. index:: Backend, PHP-API, FullyScanned, ext:t3editor \ No newline at end of file diff --git a/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php b/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php index 61dfed7b006f364180b1e18a895b3191a8e1e266..f4288c1ee38816645b1cbad36bab691677a47c87 100644 --- a/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php +++ b/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php @@ -669,4 +669,9 @@ return [ 'Deprecation-84409-ImageManipulationWizardRenamedToImageManipulationController.rst', ], ], + 'TYPO3\CMS\T3editor\TypoScriptReferenceLoader' => [ + 'restFiles' => [ + 'Deprecation-84411-TypoScriptReferenceLoaderRenamedToTypoScriptReferenceController.rst', + ], + ], ]; diff --git a/typo3/sysext/t3editor/Classes/TypoScriptReferenceLoader.php b/typo3/sysext/t3editor/Classes/Controller/TypoScriptReferenceController.php similarity index 92% rename from typo3/sysext/t3editor/Classes/TypoScriptReferenceLoader.php rename to typo3/sysext/t3editor/Classes/Controller/TypoScriptReferenceController.php index ceec7d6df33774329563cc618319b9f8d8a01ed6..5cd9ceaecdd8e00d102afed27b8e48492e06bafc 100644 --- a/typo3/sysext/t3editor/Classes/TypoScriptReferenceLoader.php +++ b/typo3/sysext/t3editor/Classes/Controller/TypoScriptReferenceController.php @@ -1,5 +1,5 @@ <?php -namespace TYPO3\CMS\T3editor; +namespace TYPO3\CMS\T3editor\Controller; /* * This file is part of the TYPO3 CMS project. @@ -21,7 +21,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; /** * Loads TSref information from a XML file an responds to an AJAX call. */ -class TypoScriptReferenceLoader +class TypoScriptReferenceController { /** * @var \DOMDocument @@ -37,13 +37,12 @@ class TypoScriptReferenceLoader } /** - * General processor for AJAX requests. - * Called by AjaxRequestHandler + * Load TypoScript reference * * @param ServerRequestInterface $request * @return ResponseInterface */ - public function processAjaxRequest(ServerRequestInterface $request): ResponseInterface + public function loadReference(ServerRequestInterface $request): ResponseInterface { // Load the TSref XML information: $this->loadFile(GeneralUtility::getFileAbsFileName('EXT:t3editor/Resources/Private/tsref.xml')); diff --git a/typo3/sysext/t3editor/Configuration/Backend/AjaxRoutes.php b/typo3/sysext/t3editor/Configuration/Backend/AjaxRoutes.php index 7a0f00cbd67d3eb97409059068898f12da7dc99e..64283feee6db1c865b687c45c1c5b40c4116986c 100644 --- a/typo3/sysext/t3editor/Configuration/Backend/AjaxRoutes.php +++ b/typo3/sysext/t3editor/Configuration/Backend/AjaxRoutes.php @@ -7,7 +7,7 @@ return [ // Get TSRef 't3editor_tsref' => [ 'path' => '/t3editor/tsref', - 'target' => \TYPO3\CMS\T3editor\TypoScriptReferenceLoader::class . '::processAjaxRequest' + 'target' => \TYPO3\CMS\T3editor\Controller\TypoScriptReferenceController::class . '::loadReference' ], // Load code completion templates diff --git a/typo3/sysext/t3editor/Migrations/Code/ClassAliasMap.php b/typo3/sysext/t3editor/Migrations/Code/ClassAliasMap.php index d8e5c23a48d7db5aa06d13a5bbfa39f936c14de5..9483d2a76a6d51b5d4ebdadf45c09a900d1fbeab 100644 --- a/typo3/sysext/t3editor/Migrations/Code/ClassAliasMap.php +++ b/typo3/sysext/t3editor/Migrations/Code/ClassAliasMap.php @@ -1,4 +1,5 @@ <?php return [ 'TYPO3\\CMS\\T3editor\\CodeCompletion' => \TYPO3\CMS\T3editor\Controller\CodeCompletionController::class, + 'TYPO3\\CMS\\T3editor\\TypoScriptReferenceLoader' => \TYPO3\CMS\T3editor\Controller\TypoScriptReferenceController::class, ]; diff --git a/typo3/sysext/t3editor/Migrations/Code/LegacyClassesForIde.php b/typo3/sysext/t3editor/Migrations/Code/LegacyClassesForIde.php index 44cfd020bcfb9b58423bb2a78fa42a83c2970882..d8b41e8b6c9548f60c83c2645de5402d6c821e1d 100644 --- a/typo3/sysext/t3editor/Migrations/Code/LegacyClassesForIde.php +++ b/typo3/sysext/t3editor/Migrations/Code/LegacyClassesForIde.php @@ -10,4 +10,11 @@ namespace TYPO3\CMS\T3editor { class CodeCompletion extends \TYPO3\CMS\T3editor\Controller\CodeCompletionController { } + + /** + * @deprecated since v9, will be removed in v10 + */ + class TypoScriptReferenceLoader extends \TYPO3\CMS\T3editor\Controller\TypoScriptReferenceController + { + } }