[TASK] Sort packages by name in Composer manifests
[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 $offlineMode = (bool)\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
6 \TYPO3\CMS\Core\Configuration\ExtensionConfiguration::class
7 )->get('extensionmanager', 'offlineMode');
8 if (!$offlineMode) {
9 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Extensionmanager\Task\UpdateExtensionListTask::class] = [
10 'extension' => 'extensionmanager',
11 'title' => 'LLL:EXT:extensionmanager/Resources/Private/Language/locallang.xlf:task.updateExtensionListTask.name',
12 'description' => 'LLL:EXT:extensionmanager/Resources/Private/Language/locallang.xlf:task.updateExtensionListTask.description',
13 'additionalFields' => '',
14 ];
15 }
16 unset($offlineMode);
17
18 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = \TYPO3\CMS\Extensionmanager\Command\ExtensionCommandController::class;
19
20 if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_BE) {
21 $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
22 $signalSlotDispatcher->connect(
23 \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService::class,
24 'willInstallExtensions',
25 \TYPO3\CMS\Core\Package\PackageManager::class,
26 'scanAvailablePackages'
27 );
28 $signalSlotDispatcher->connect(
29 \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
30 'tablesDefinitionIsBeingBuilt',
31 \TYPO3\CMS\Core\Cache\DatabaseSchemaService::class,
32 'addCachingFrameworkRequiredDatabaseSchemaForInstallUtility'
33 );
34 $signalSlotDispatcher->connect(
35 \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
36 'tablesDefinitionIsBeingBuilt',
37 \TYPO3\CMS\Core\Category\CategoryRegistry::class,
38 'addExtensionCategoryDatabaseSchemaToTablesDefinition'
39 );
40 unset($signalSlotDispatcher);
41 }
42
43 // Register extension status report system
44 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['Extension Manager'][] =
45 \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus::class;