From 42807de32ab64bef2c18eb1f6a6d0a0358f8c57f Mon Sep 17 00:00:00 2001 From: Matthieu Napoli Date: Tue, 17 Mar 2015 12:05:36 +1300 Subject: Fixes #7438 --- plugins/CoreUpdater/Commands/Update.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins') 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 +} -- cgit v1.2.3