X-Git-Url: https://git.cweiske.de/shpub.git/blobdiff_plain/cec131d5363dee47eed339881c1043c404094fb7..e4bedda9ac3854ceb3d7b88a83155558e9ea6062:/src/shpub/Command/Reply.php diff --git a/src/shpub/Command/Reply.php b/src/shpub/Command/Reply.php index cb09ba7..327111d 100644 --- a/src/shpub/Command/Reply.php +++ b/src/shpub/Command/Reply.php @@ -4,13 +4,13 @@ namespace shpub; class Command_Reply { /** - * @var Config_Host + * @var Config */ - protected $host; + protected $cfg; - public function __construct($host) + public function __construct($cfg) { - $this->host = $host; + $this->cfg = $cfg; } public function run($url, $text) @@ -28,7 +28,7 @@ class Command_Reply ] ); - $req = new Request($this->host); + $req = new Request($this->cfg->host, $this->cfg); $res = $req->send($body); $postUrl = $res->getHeader('Location'); echo "Reply created at server\n";