Skip to content

Commit

Permalink
added getTransport, getEndpoint, getRegisteredNamespacesBuilder to Cl…
Browse files Browse the repository at this point in the history
…ientBuilder.php (#551)
  • Loading branch information
MichaelBrenden authored and polyfractal committed Mar 2, 2017
1 parent 9c45775 commit 608bfe8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/Elasticsearch/ClientBuilder.php
Expand Up @@ -100,6 +100,36 @@ public static function create()
return new static();
}

/**
* Can supply first parm to Client::__construct() when invoking manually or with dependency injection
* @return this->ransport
*
*/
public function getTransport()
{
return $this->transport;
}

/**
* Can supply second parm to Client::__construct() when invoking manually or with dependency injection
* @return this->endpoint
*
*/
public function getEndpoint()
{
return $this->endpoint;
}

/**
* Can supply third parm to Client::__construct() when invoking manually or with dependency injection
* @return this->registeredNamespacesBuilders
*
*/
public function getRegisteredNamespacesBuilders()
{
return $this->registeredNamespacesBuilders;
}

/**
* Build a new client from the provided config. Hash keys
* should correspond to the method name e.g. ['connectionPool']
Expand Down

0 comments on commit 608bfe8

Please sign in to comment.