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:
authormattab <matthieu.aubry@gmail.com>2014-02-20 06:33:51 +0400
committermattab <matthieu.aubry@gmail.com>2014-02-20 06:33:51 +0400
commit8082e284e5930dee4930b61a44d7febfbde0b44a (patch)
tree5abc8fe94118220778c0a5f33c8b0caf26ebe28c /plugins/CoreUpdater/CoreUpdater.php
parent55d3afaf4f930fb228cde7b2d743e55418391f8c (diff)
Fixes #4711 Adding new console command to trigger Piwik core and Plugins upgrades, if any.
Run it via: ./console core:update --dry-run
Diffstat (limited to 'plugins/CoreUpdater/CoreUpdater.php')
-rw-r--r--plugins/CoreUpdater/CoreUpdater.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/CoreUpdater/CoreUpdater.php b/plugins/CoreUpdater/CoreUpdater.php
index 4593c42a06..8cde10a7bc 100644
--- a/plugins/CoreUpdater/CoreUpdater.php
+++ b/plugins/CoreUpdater/CoreUpdater.php
@@ -32,10 +32,16 @@ class CoreUpdater extends \Piwik\Plugin
$hooks = array(
'Request.dispatchCoreAndPluginUpdatesScreen' => 'dispatch',
'Updater.checkForUpdates' => 'updateCheck',
+ 'Console.addCommands' => 'addConsoleCommands',
);
return $hooks;
}
+ public function addConsoleCommands(&$commands)
+ {
+ $commands[] = 'Piwik\Plugins\CoreUpdater\Commands\Update';
+ }
+
public static function updateComponents(Updater $updater, $componentsWithUpdateFile)
{
$warnings = array();