Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2016-09-02 22:08:27 +0300
committersgiehl <stefan@piwik.org>2016-09-02 22:08:27 +0300
commitb300a6db8da2a2d6664f7e000c689667d6934a48 (patch)
tree14e9e1f7ebbd042ed9a51449c61a04cd515ea73f /core/Updater.php
parent82d811b050944981b945d8c676a4fd6c44377b07 (diff)
post event after component has been updated
Diffstat (limited to 'core/Updater.php')
-rw-r--r--core/Updater.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Updater.php b/core/Updater.php
index 3302268bef..587a609f5a 100644
--- a/core/Updater.php
+++ b/core/Updater.php
@@ -279,6 +279,15 @@ class Updater
$this->executeListenerHook('onComponentUpdateFinished', array($componentName, $updatedVersion, $warningMessages));
+ /**
+ * Event triggered after a component has been updated.
+ *
+ * @param string $componentName 'core', or plugin name
+ * @param string $updatedVersion version updated to
+ * @param array $warningMessages warnings occurred during update
+ */
+ Piwik::postEvent('Updater.componentUpdated', array($componentName, $updatedVersion, $warningMessages));
+
return $warningMessages;
}