[!!!][TASK] Migrate pages_language_overlay into pages
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / ext_localconf.php
index 70b69a9..2106549 100644 (file)
@@ -31,14 +31,14 @@ unset($extbaseObjectContainer);
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(\TYPO3\CMS\Extbase\Property\TypeConverter\StaticFileCollectionConverter::class);
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(\TYPO3\CMS\Extbase\Property\TypeConverter\FolderConverter::class);
 
-if (TYPO3_MODE === 'BE') {
-    // registers Extbase at the cli_dispatcher with key "extbase".
-    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['extbase'] = [
-        function () {
-            $bootstrap = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Core\Bootstrap::class);
-            echo $bootstrap->run('', []);
-        }
-    ];
-    // register help command
-    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = \TYPO3\CMS\Extbase\Command\HelpCommandController::class;
-}
+// register help command
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = \TYPO3\CMS\Extbase\Command\HelpCommandController::class;
+
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Extbase\Scheduler\Task::class] = [
+    'extension' => 'extbase',
+    'title' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:task.name',
+    'description' => 'LLL:EXT:extbase/Resources/Private/Language/locallang_db.xlf:task.description',
+    'additionalFields' => \TYPO3\CMS\Extbase\Scheduler\FieldProvider::class
+];
+
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkFlexFormValue'][] = \TYPO3\CMS\Extbase\Hook\DataHandler\CheckFlexFormValue::class;