[TASK] Split action buttons into two groups
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Register extension list update task
5 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Extensionmanager\Task\UpdateExtensionListTask::class] = array(
6 'extension' => $_EXTKEY,
7 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf:task.updateExtensionListTask.name',
8 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf:task.updateExtensionListTask.description',
9 'additionalFields' => '',
10 );
11
12 if (TYPO3_MODE === 'BE') {
13 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = \TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController::class;
14 if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
15 $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
16 $signalSlotDispatcher->connect(
17 \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService::class,
18 'willInstallExtensions',
19 \TYPO3\CMS\Core\Package\PackageManager::class,
20 'scanAvailablePackages'
21 );
22 $signalSlotDispatcher->connect(
23 \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService::class,
24 'hasInstalledExtensions',
25 \TYPO3\CMS\Core\Package\PackageManager::class,
26 'updatePackagesForClassLoader'
27 );
28 $signalSlotDispatcher->connect(
29 \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
30 'tablesDefinitionIsBeingBuilt',
31 \TYPO3\CMS\Core\Cache\Cache::class,
32 'addCachingFrameworkRequiredDatabaseSchemaToTablesDefinition'
33 );
34 $signalSlotDispatcher->connect(
35 \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
36 'tablesDefinitionIsBeingBuilt',
37 \TYPO3\CMS\Core\Category\CategoryRegistry::class,
38 'addExtensionCategoryDatabaseSchemaToTablesDefinition'
39 );
40 }
41
42 }