forked from TYPO3-Console/TYPO3-Console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
21 lines (19 loc) · 894 Bytes
/
ext_localconf.php
File metadata and controls
21 lines (19 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
defined('TYPO3_MODE') or die('Access denied.');
call_user_func(function($extensionKey) {
if (defined('TYPO3_cliMode') && TYPO3_cliMode) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter('Helhum\\Typo3Console\\Property\\TypeConverter\\ArrayConverter');
} elseif (TYPO3_MODE === 'BE' && isset($_GET['M']) && 'tools_ExtensionmanagerExtensionmanager' === $_GET['M']) {
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
$signalSlotDispatcher->connect(
'TYPO3\\CMS\\Extensionmanager\\Service\\ExtensionManagementService',
'hasInstalledExtensions',
function($keyOfInstalledExtension) use ($extensionKey) {
if ($extensionKey !== $keyOfInstalledExtension) {
return;
}
\Helhum\Typo3Console\Composer\InstallerScripts::postInstallExtension();
}
);
}
}, $_EXTKEY);