[!!!][FEATURE] Introduce PSR-7-based Routing for Backend AJAX Requests
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / DefaultConfiguration.php
index 661e1a6..367066e 100644 (file)
@@ -873,130 +873,7 @@ return array(
                'versionNumberInFilename' => FALSE,                                     // <p>Boolean: If TRUE, included CSS and JS files will have the timestamp embedded in the filename, ie. filename.1269312081.js. This will make browsers and proxies reload the files if they change (thus avoiding caching issues). IMPORTANT: this feature requires extra .htaccess rules to work (please refer to _.htaccess or the _.htaccess file from the dummy package)</p><p>If FALSE the filemtime will be appended as a query-string.</p>
                'spriteIconGenerator_handler' => \TYPO3\CMS\Backend\Sprite\SimpleSpriteHandler::class,          // String: Used to register own/other spriteGenerating Handler, they have to implement the interface \TYPO3\CMS\Backend\Sprite\SpriteIconGeneratorInterface. If set to "\TYPO3\CMS\Backend\Sprite\SpriteBuildingHandler" icons from extensions will automatically merged into sprites.
                'debug' => FALSE,                                                                       // Boolean: If set, the loginrefresh is disabled and pageRenderer is set to debug mode. Use this to debug the backend only!
-               'AJAX' => array(                                                                        // array of key-value pairs for a unified use of AJAX calls in the TYPO3 backend. Keys are the unique ajaxIDs where the value will be resolved to call a method in an object. See ajax.php for more information.
-                       'SC_alt_db_navframe::expandCollapse' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\PageTreeNavigationController::class . '->ajaxExpandCollapse',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'SC_alt_file_navframe::expandCollapse' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\FileSystemNavigationFrameController::class . '->ajaxExpandCollapse',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'TYPO3_tcefile::process' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\File\FileController::class . '->processAjaxRequest',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'TYPO3_tcefile::fileExists' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\File\FileController::class . '->fileExistsAjaxRequest',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       't3lib_TCEforms_inline::createNewRecord' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\FormInlineAjaxController::class . '->processInlineAjaxRequest',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       't3lib_TCEforms_inline::getRecordDetails' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\FormInlineAjaxController::class . '->processInlineAjaxRequest',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       't3lib_TCEforms_inline::synchronizeLocalizeRecords' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\FormInlineAjaxController::class . '->processInlineAjaxRequest',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       't3lib_TCEforms_inline::setExpandedCollapsedState' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\FormInlineAjaxController::class . '->processInlineAjaxRequest',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       't3lib_TCEforms_suggest::searchRecord' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Form\Wizard\SuggestWizard::class . '->processAjaxRequest',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'ShortcutMenu::getShortcutEditForm' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::class . '->getAjaxShortcutEditForm',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'ShortcutMenu::saveShortcut' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::class . '->setAjaxShortcut',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'ShortcutMenu::render' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::class . '->renderAjaxMenu',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'ShortcutMenu::delete' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::class . '->deleteAjaxShortcut',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'ShortcutMenu::create' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Backend\ToolbarItems\ShortcutToolbarItem::class . '->createAjaxShortcut',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'SystemInformationMenu::load' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Backend\ToolbarItems\SystemInformationToolbarItem::class . '->renderAjax',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'ModuleMenu::reload' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\BackendController::class . '->getModuleMenuForReload',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'BackendLogin::login' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\AjaxLoginHandler::class . '->login',
-                               // Needs to be unprotected
-                               'csrfTokenCheck' => FALSE
-                       ),
-                       'BackendLogin::logout' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\AjaxLoginHandler::class . '->logout',
-                               // Needs to be unprotected
-                               'csrfTokenCheck' => FALSE
-                       ),
-                       'BackendLogin::refreshLogin' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\AjaxLoginHandler::class . '->refreshLogin',
-                               // Needs to be unprotected
-                               'csrfTokenCheck' => FALSE
-                       ),
-                       'BackendLogin::isTimedOut' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\AjaxLoginHandler::class . '->isTimedOut',
-                               // Needs to be unprotected
-                               'csrfTokenCheck' => FALSE
-                       ),
-                       'ExtDirect::getAPI' => array(
-                               'callbackMethod' => \TYPO3\CMS\Core\ExtDirect\ExtDirectApi::class . '->getAPI',
-                               // No need to be CSRF protected
-                               'csrfTokenCheck' => FALSE
-                       ),
-                       'ExtDirect::route' => array(
-                               'callbackMethod' => \TYPO3\CMS\Core\ExtDirect\ExtDirectRouter::class . '->route',
-                               // All ExtJS calls are CSRF protected with another token
-                               'csrfTokenCheck' => FALSE
-                       ),
-                       'DocumentTemplate::getFlashMessages' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Template\DocumentTemplate::class . '->renderFlashMessages',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'ContextMenu::load' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\ClickMenuController::class . '->printContentForAjaxRequest',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'DataHandler::process' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::class . '->processAjaxRequest',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'UserSettings::process' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\UserSettingsController::class . '->processAjaxRequest',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'ImageManipulationWizard::getHtmlForImageManipulationWizard' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Form\Wizard\ImageManipulationWizard::class . '->getHtmlForImageManipulationWizard',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'LiveSearch' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\LiveSearchController::class . '->liveSearchAction',
-                               'csrfTokenCheck' => TRUE
-                       ),
-                       'OnlineMedia::add' => array(
-                               'callbackMethod' => \TYPO3\CMS\Backend\Controller\OnlineMediaController::class . '->addAjaxAction',
-                               'csrfTokenCheck' => TRUE
-                       )
-               ),
+               'AJAX' => array(),                                                                      // array of key-value pairs for a unified use of AJAX calls in the TYPO3 backend. Keys are the unique ajaxIDs where the value will be resolved to call a method in an object. See ajax.php for more information.
                'toolbarItems' => array(), // Array: Registered toolbar items classes
                'HTTP' => array(
                        'Response' => array(