forked from TYPO3-Console/TYPO3-Console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
19 lines (18 loc) · 876 Bytes
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
defined('TYPO3_MODE') or die('Access denied.');
call_user_func(function () {
if (\TYPO3\CMS\Core\Core\Bootstrap::usesComposerClassLoading()) {
// Do not register this slot for binary copy in composer mode.
// The composer plugin takes care doing so in this case.
return;
}
if ((TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) || (TYPO3_MODE === 'BE' && isset($_GET['M']) && 'tools_ExtensionmanagerExtensionmanager' === $_GET['M'])) {
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$signalSlotDispatcher->connect(
\TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
'afterExtensionInstall',
\Helhum\Typo3Console\Hook\ExtensionInstallation::class,
'afterInstallation'
);
}
});