]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Maintenance.php
Ward against missing keys in Model\APContact::isRelay
[friendica.git] / src / Console / Maintenance.php
index 647d1910f468999e8c936f2969e624553afab1e8..7744c9ee471d0b56ed07ea4ab25825a20e86fbc9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -22,7 +22,7 @@
 namespace Friendica\Console;
 
 use Friendica\App;
-use Friendica\Core\Config\IConfig;
+use Friendica\Core\Config\Capability\IManageConfigValues;
 
 /**
  * Sets maintenance mode for this node
@@ -36,7 +36,7 @@ class Maintenance extends \Asika\SimpleConsole\Console
         */
        private $appMode;
        /**
-        * @var IConfig
+        * @var IManageConfigValues
         */
        private $config;
 
@@ -69,7 +69,7 @@ HELP;
                return $help;
        }
 
-       public function __construct(App\Mode $appMode, IConfig $config, $argv = null)
+       public function __construct(App\Mode $appMode, IManageConfigValues $config, $argv = null)
        {
                parent::__construct($argv);
 
@@ -77,7 +77,7 @@ HELP;
                $this->config = $config;
        }
 
-       protected function doExecute()
+       protected function doExecute(): int
        {
                if ($this->getOption('v')) {
                        $this->out('Class: ' . __CLASS__);