LinkORB\Component\Etcd\Client::__construct PHP Method

__construct() public method

public __construct ( $server = '', $version = 'v2' )
    public function __construct($server = '', $version = 'v2')
    {
        $server = rtrim($server, '/');
        if ($server) {
            $this->server = $server;
        }
        // echo 'Testing server ' . $this->server . PHP_EOL;
        $this->apiversion = $version;
        $this->guzzleclient = new GuzzleClient($this->server, array('request.options' => array('exceptions' => false)));
    }