X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FTypo.php;h=1397f6092fa97f7b39d29ff90673ad90e5b83562;hb=49c47008d189617ec989b04c8ec42b3c1484e87f;hp=216d05723285bce1e818da6b9fbd4ef3186edba1;hpb=2c19b8c8e60815b8781ce1b56c3f56fe86b92476;p=friendica.git diff --git a/src/Console/Typo.php b/src/Console/Typo.php index 216d057232..1397f6092f 100644 --- a/src/Console/Typo.php +++ b/src/Console/Typo.php @@ -1,19 +1,41 @@ . + * + */ namespace Friendica\Console; -use Friendica\BaseObject; +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 */ class Typo extends \Asika\SimpleConsole\Console { protected $helpOptions = ['h', 'help', '?']; + /** + * @var IManageConfigValues + */ + private $config; + protected function getHelp() { $help = <<config = $config; + } + protected function doExecute() { if ($this->getOption('v')) { @@ -43,7 +72,7 @@ HELP; throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments'); } - $php_path = BaseObject::getApp()->getConfig()->get('config', 'php_path', 'php'); + $php_path = $this->config->get('config', 'php_path', 'php'); if ($this->getOption('v')) { $this->out('Directory: src');