[FEATURE] Add signal after extension installation
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Classes / Utility / InstallUtility.php
index 202742c..65dcd69 100644 (file)
@@ -113,6 +113,8 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
                } else {
                        $this->cacheManager->flushCachesInGroup('system');
                }
+
+               $this->emitAfterExtensionInstallSignal($extensionKey);
        }
 
        /**
@@ -170,6 +172,15 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
                $this->cacheManager->flushCachesInGroup('system');
        }
 
+       /**
+        * Emits a signal after an extension has been installed
+        *
+        * @param string $extensionKey
+        */
+       protected function emitAfterExtensionInstallSignal($extensionKey) {
+               $this->signalSlotDispatcher->dispatch(__CLASS__, 'afterExtensionInstall', array($extensionKey, $this));
+       }
+
        /**
         * Emits a signal after an extension has been uninstalled
         *