[TASK] Introduce unique signal registration
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Classes / Controller / ConfigurationController.php
index bca9593..f4d7a50 100644 (file)
@@ -96,7 +96,7 @@ class ConfigurationController extends AbstractController {
                        $configurationUtility->convertValuedToNestedConfiguration($newConfiguration),
                        $extensionKey
                );
-               $this->signalSlotDispatcher->dispatch(__CLASS__, 'afterExtensionConfigurationWrite', array($newConfiguration, $this));
+               $this->emitAfterExtensionConfigurationWriteSignal($newConfiguration);
                /** @var Extension $extension */
                $extension = $this->extensionRepository->findOneByCurrentVersionByExtensionKey($extensionKey);
                // Different handling for distribution installation
@@ -109,4 +109,13 @@ class ConfigurationController extends AbstractController {
                }
        }
 
+       /**
+        * Emits a signal after the configuration file was written
+        *
+        * @param array $newConfiguration
+        */
+       protected function emitAfterExtensionConfigurationWriteSignal(array $newConfiguration) {
+               $this->signalSlotDispatcher->dispatch(__CLASS__, 'afterExtensionConfigurationWrite', array($newConfiguration, $this));
+       }
+
 }