aboutsummaryrefslogtreecommitdiffstats
path: root/core/command/upgrade.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-09 14:08:22 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-09 14:08:22 +0200
commit4cb5970947f915c801a6748ad26898831ed3b4c1 (patch)
tree1296c65af512b67cb3be071c577a183695b9d3f6 /core/command/upgrade.php
parentbd21e5925cf5e2f388b0f2b0f92d15e887c18423 (diff)
downloadnextcloud-server-4cb5970947f915c801a6748ad26898831ed3b4c1.tar.gz
nextcloud-server-4cb5970947f915c801a6748ad26898831ed3b4c1.zip
Always pass in ILogger
Diffstat (limited to 'core/command/upgrade.php')
-rw-r--r--core/command/upgrade.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php
index 0f1b828ba25..5d4819f6baf 100644
--- a/core/command/upgrade.php
+++ b/core/command/upgrade.php
@@ -30,6 +30,7 @@ namespace OC\Core\Command;
use OC\Console\TimestampFormatter;
use OC\Updater;
use OCP\IConfig;
+use OCP\ILogger;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@@ -44,17 +45,19 @@ class Upgrade extends Command {
const ERROR_INVALID_ARGUMENTS = 4;
const ERROR_FAILURE = 5;
- /**
- * @var IConfig
- */
+ /** @var IConfig */
private $config;
+ /** @var ILogger */
+ private $logger;
+
/**
* @param IConfig $config
*/
- public function __construct(IConfig $config) {
+ public function __construct(IConfig $config, ILogger $logger) {
parent::__construct();
$this->config = $config;
+ $this->logger = $logger;
}
protected function configure() {
@@ -126,7 +129,8 @@ class Upgrade extends Command {
$self = $this;
$updater = new Updater(\OC::$server->getHTTPHelper(),
- $this->config);
+ $this->config,
+ $this->logger);
$updater->setSimulateStepEnabled($simulateStepEnabled);
$updater->setUpdateStepEnabled($updateStepEnabled);