Creating interfaces for Config/PConfig & fix tests

This commit is contained in:
nupplaPhil 2019-12-19 20:11:07 +01:00
parent 4835f1185f
commit c1dbb25656
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
54 changed files with 349 additions and 285 deletions

View file

@ -2,7 +2,7 @@
namespace Friendica\Console;
use Friendica\Core\Config\Configuration;
use Friendica\Core\Config\IConfiguration;
/**
* Tired of chasing typos and finding them after a commit.
@ -15,7 +15,7 @@ class Typo extends \Asika\SimpleConsole\Console
protected $helpOptions = ['h', 'help', '?'];
/**
* @var Configuration
* @var IConfiguration
*/
private $config;
@ -36,7 +36,7 @@ HELP;
return $help;
}
public function __construct(Configuration $config, array $argv = null)
public function __construct(IConfiguration $config, array $argv = null)
{
parent::__construct($argv);