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