Skip to content

Commit 608bfe8

Browse files
MichaelBrendenpolyfractal
authored andcommitted
added getTransport, getEndpoint, getRegisteredNamespacesBuilder to ClientBuilder.php (#551)
1 parent 9c45775 commit 608bfe8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/Elasticsearch/ClientBuilder.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,36 @@ public static function create()
100100
return new static();
101101
}
102102

103+
/**
104+
* Can supply first parm to Client::__construct() when invoking manually or with dependency injection
105+
* @return this->ransport
106+
*
107+
*/
108+
public function getTransport()
109+
{
110+
return $this->transport;
111+
}
112+
113+
/**
114+
* Can supply second parm to Client::__construct() when invoking manually or with dependency injection
115+
* @return this->endpoint
116+
*
117+
*/
118+
public function getEndpoint()
119+
{
120+
return $this->endpoint;
121+
}
122+
123+
/**
124+
* Can supply third parm to Client::__construct() when invoking manually or with dependency injection
125+
* @return this->registeredNamespacesBuilders
126+
*
127+
*/
128+
public function getRegisteredNamespacesBuilders()
129+
{
130+
return $this->registeredNamespacesBuilders;
131+
}
132+
103133
/**
104134
* Build a new client from the provided config. Hash keys
105135
* should correspond to the method name e.g. ['connectionPool']

0 commit comments

Comments
 (0)