X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FServerBlock.php;h=ada4f2213270fd23c33c50724f9f88a7458e35ae;hb=cc8491223ec17bd12b7f37d5b2cc16b58184291e;hp=a8a75327c44cecd66c943c5540b6da061e5f0fba;hpb=af88c2daa34e39cb6430abf64d0648665bfeb9cd;p=friendica.git diff --git a/src/Console/ServerBlock.php b/src/Console/ServerBlock.php index a8a75327c4..ada4f22132 100644 --- a/src/Console/ServerBlock.php +++ b/src/Console/ServerBlock.php @@ -1,11 +1,30 @@ . + * + */ namespace Friendica\Console; use Asika\SimpleConsole\CommandArgsException; use Asika\SimpleConsole\Console; use Console_Table; -use Friendica\Core\Config\IConfiguration; +use Friendica\Core\Config\IConfig; /** * Manage blocked servers @@ -20,7 +39,7 @@ class ServerBlock extends Console protected $helpOptions = ['h', 'help', '?']; /** - * @var IConfiguration + * @var IConfig */ private $config; @@ -49,7 +68,7 @@ HELP; return $help; } - public function __construct(IConfiguration $config, $argv = null) + public function __construct(IConfig $config, $argv = null) { parent::__construct($argv); @@ -77,9 +96,9 @@ HELP; /** * Prints the whole list of blocked domains including the reason * - * @param IConfiguration $config + * @param IConfig $config */ - private function printBlockedServers(IConfiguration $config) + private function printBlockedServers(IConfig $config) { $table = new Console_Table(); $table->setHeaders(['Domain', 'Reason']); @@ -93,11 +112,11 @@ HELP; /** * Adds a server to the blocked list * - * @param IConfiguration $config + * @param IConfig $config * * @return int The return code (0 = success, 1 = failed) */ - private function addBlockedServer(IConfiguration $config) + private function addBlockedServer(IConfig $config) { if (count($this->args) < 2 || count($this->args) > 3) { throw new CommandArgsException('Add needs a domain and optional a reason.'); @@ -145,11 +164,11 @@ HELP; /** * Removes a server from the blocked list * - * @param IConfiguration $config + * @param IConfig $config * * @return int The return code (0 = success, 1 = failed) */ - private function removeBlockedServer(IConfiguration $config) + private function removeBlockedServer(IConfig $config) { if (count($this->args) !== 2) { throw new CommandArgsException('Remove needs a second parameter.');