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:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-03-17 02:05:36 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-03-17 02:05:36 +0300
commit42807de32ab64bef2c18eb1f6a6d0a0358f8c57f (patch)
treed13f5a921d81b999d7cad6c1e759d1d4aa9877a2 /plugins
parentcb715fb9614e02afa37b5f89b09869c5d931b9c8 (diff)
Fixes #7438
Diffstat (limited to 'plugins')
-rw-r--r--plugins/CoreUpdater/Commands/Update.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/CoreUpdater/Commands/Update.php b/plugins/CoreUpdater/Commands/Update.php
index 02f774ec44..9eb8309e45 100644
--- a/plugins/CoreUpdater/Commands/Update.php
+++ b/plugins/CoreUpdater/Commands/Update.php
@@ -8,6 +8,7 @@
*/
namespace Piwik\Plugins\CoreUpdater\Commands;
+use Piwik\Container\StaticContainer;
use Piwik\Filesystem;
use Piwik\Plugin\ConsoleCommand;
use Piwik\Plugins\CoreUpdater\Controller;
@@ -85,9 +86,9 @@ class Update extends ConsoleCommand
{
$this->checkAllRequiredOptionsAreNotEmpty($input);
- $updateController = new Controller();
+ $updateController = StaticContainer::get('Piwik\Plugins\CoreUpdater\Controller');
$content = $updateController->runUpdaterAndExit($doDryRun);
$output->writeln($content);
}
-} \ No newline at end of file
+}