Skip to content

Commit

Permalink
[BWC] Add getPath() method to ConnectionInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
polyfractal committed Sep 12, 2016
1 parent 586fbdb commit 8bcf1a8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Elasticsearch/Connections/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,14 @@ public function getUserPass()
return null;
}

/**
* @return null|string
*/
public function getPath()
{
return $this->path;
}

/**
* @param $request
* @param $response
Expand Down
7 changes: 7 additions & 0 deletions src/Elasticsearch/Connections/ConnectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ public function getHost();
*/
public function getUserPass();

/**
* Get the URL path suffix, null if not set
*
* @return null|string;
*/
public function getPath();

/**
* Check to see if this instance is marked as 'alive'
*
Expand Down

0 comments on commit 8bcf1a8

Please sign in to comment.