]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Maintenance.php
Merge pull request #11250 from nupplaphil/bug/redis_pw
[friendica.git] / src / Console / Maintenance.php
index 26b77a974148850343f5a740cf80793b13660b87..7e731828466d8d2f5b176bb9f149948c389007b3 100644 (file)
@@ -1,14 +1,31 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2022, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Console;
 
 use Friendica\App;
-use Friendica\Core\Config\Configuration;
+use Friendica\Core\Config\Capability\IManageConfigValues;
 
 /**
- * @brief Sets maintenance mode for this node
- *
- * @author Hypolite Petovan <hypolite@mrpetovan.com>
+ * Sets maintenance mode for this node
  */
 class Maintenance extends \Asika\SimpleConsole\Console
 {
@@ -19,7 +36,7 @@ class Maintenance extends \Asika\SimpleConsole\Console
         */
        private $appMode;
        /**
-        * @var Configuration
+        * @var IManageConfigValues
         */
        private $config;
 
@@ -52,7 +69,7 @@ HELP;
                return $help;
        }
 
-       public function __construct(App\Mode $appMode, Configuration $config, $argv = null)
+       public function __construct(App\Mode $appMode, IManageConfigValues $config, $argv = null)
        {
                parent::__construct($argv);