]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Typo.php
Convert class calls into DI calls
[friendica.git] / src / Console / Typo.php
index eed0a31816331f81b6b448dfafd7f4133c7fe96f..1397f6092fa97f7b39d29ff90673ad90e5b83562 100644 (file)
@@ -1,21 +1,38 @@
 <?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\Core\Config\IConfig;
+use Friendica\Core\Config\Capability\IManageConfigValues;
 
 /**
  * Tired of chasing typos and finding them after a commit.
  * Run this and quickly see if we've got any parse errors in our application files.
- *
- * @author Hypolite Petovan <hypolite@mrpetovan.com>
  */
 class Typo extends \Asika\SimpleConsole\Console
 {
        protected $helpOptions = ['h', 'help', '?'];
 
        /**
-        * @var IConfig
+        * @var IManageConfigValues
         */
        private $config;
 
@@ -36,7 +53,7 @@ HELP;
                return $help;
        }
 
-       public function __construct(IConfig $config, array $argv = null)
+       public function __construct(IManageConfigValues $config, array $argv = null)
        {
                parent::__construct($argv);