diff options
Diffstat (limited to 'lib/Cron/Updater.php')
-rw-r--r-- | lib/Cron/Updater.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Cron/Updater.php b/lib/Cron/Updater.php index 5247ea6f5..55afe0a38 100644 --- a/lib/Cron/Updater.php +++ b/lib/Cron/Updater.php @@ -33,7 +33,9 @@ class Updater extends Job */ private $updaterService; - public function __construct(Config $config, StatusService $status, + public function __construct( + Config $config, + StatusService $status, UpdaterService $updaterService ) { $this->config = $config; @@ -41,9 +43,9 @@ class Updater extends Job $this->updaterService = $updaterService; } - protected function run($argument) + protected function run($argument) { - if ($this->config->getUseCronUpdates() + if ($this->config->getUseCronUpdates() && $this->status->isProperlyConfigured() ) { $this->updaterService->beforeUpdate(); @@ -51,5 +53,4 @@ class Updater extends Job $this->updaterService->afterUpdate(); } } - } |