public function ServiceRegister(AgentServiceRegistration $agentServiceRegistration) {
        $r = new Request('PUT', 'v1/agent/service/register', $this->config, $agentServiceRegistration);

        return $this->requireOK($this->doRequest($r))[2];
    }
public function ServiceRegister(AgentServiceRegistration $agentServiceRegistration) {
        $r = new Request('PUT', 'v1/agent/service/register', $this->config, $agentServiceRegistration);

        return $this->requireOK($this->doRequest($r))[2];
    }
public function ServiceRegister ( AgentServiceRegistration $ agentServiceRegistration ) { $ r = new Request ( 'PUT' , 'v1/agent/service/register' , $ this -> config , $ agentServiceRegistration ) ; return $ this -> requireOK ( $ this -> doRequest ( $ r ) ) [ 2 ] ; }
Register a service within Consul

@param \DCarbone\PHPConsulAPI\Agent\AgentServiceRegistration $agentServiceRegistration
@return \DCarbone\PHPConsulAPI\Error|null
Register a service within Consul