‪TYPO3CMS  9.5
ext_localconf.php
Go to the documentation of this file.
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 if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_BE) {
19  ‪$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\‪TYPO3\CMS\‪Extbase\SignalSlot\Dispatcher::class);
20  ‪$signalSlotDispatcher->connect(
21  \‪TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService::class,
22  'willInstallExtensions',
23  \‪TYPO3\CMS\Core\Package\PackageManager::class,
24  'scanAvailablePackages'
25  );
27 }
28 
29 // Register extension status report system
30 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['Extension Manager'][] =
31  \TYPO3\CMS\Extensionmanager\Report\ExtensionStatus::class;
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3
‪$offlineMode
‪$offlineMode
Definition: ext_localconf.php:5
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪$signalSlotDispatcher
‪$signalSlotDispatcher
Definition: ext_localconf.php:6