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)
]
);
- $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";