Bug #64079
closed
Extension manager doesn't emit "hasInstalledExtensions" signal after extension upload
Added by Aimeos no-lastname-given almost 10 years ago.
Updated over 4 years ago.
Category:
Extension Manager
Description
Hi Susanne
Found a problem in the extension manager code which doesn't emit the "hasInstalledExtensions" signal if a .zip or .tx file is uploaded in the extension manager within the TYPO3 backend. If an extension is downloaded from TER, the DownloadController including the ExtensionManagementService class is used which emits the signal after installing the extension. Uploading an extension is handled by the UploadExtensionFileController class that calls the InstallUtility directly without emitting the signal.
The best option would be to use the ExtensionManagementService in the UploadExtensionFileController class as well. I've tested this with TYPO3 6.2 and 7.0 and it would be nice if this could be fixed in 6.2 LTS as well.
Thanks
- Assignee deleted (
Susanne Moog)
Please do not assign directly to a person. Thanks!
- Target version set to 7.3 (Packages)
- Status changed from New to Needs Feedback
This can't be solved easily and IMHO separate between local and TER version is much better, than a single one. You could additionally register your slot to the signal
TYPO3\CMS\Extensionmanager\Utility\InstallUtility::afterExtensionInstall
Hi Nicole
This can't be solved easily and IMHO separate between local and TER version is much better, than a single one. You could additionally register your slot to the signal
TYPO3\CMS\Extensionmanager\Utility\InstallUtility::afterExtensionInstall
Tried it with the code below in ext_localconf.php but it didn't executed Aimeos\Aimeos\Setup->executeOnSignal():
$signalSlotDispatcher->connect(
'TYPO3\\CMS\\Extensionmanager\\Utility\\InstallUtility',
'afterExtensionInstall',
'Aimeos\\Aimeos\\Setup',
'executeOnSignal'
);
This works at least for not manually uploaded extensions:
$signalSlotDispatcher->connect(
'TYPO3\\CMS\\Extensionmanager\\Service\\ExtensionManagementService',
'hasInstalledExtensions',
'Aimeos\\Aimeos\\Setup',
'executeOnSignal'
);
- Target version changed from 7.3 (Packages) to 7.4 (Backend)
- Status changed from Needs Feedback to New
- Target version changed from 7.4 (Backend) to 7.5
- Target version changed from 7.5 to 7 LTS
- Target version changed from 7 LTS to Candidate for Major Version
- Status changed from New to Closed
The code now uses the managementService in both cases. Additionally, since the introduction of events `AfterPackageActivationEvent` can be used for both.
Also available in: Atom
PDF