Skip to content

Commit 8bcf1a8

Browse files
committed
[BWC] Add getPath() method to ConnectionInterface
1 parent 586fbdb commit 8bcf1a8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/Elasticsearch/Connections/Connection.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,14 @@ public function getUserPass()
504504
return null;
505505
}
506506

507+
/**
508+
* @return null|string
509+
*/
510+
public function getPath()
511+
{
512+
return $this->path;
513+
}
514+
507515
/**
508516
* @param $request
509517
* @param $response

src/Elasticsearch/Connections/ConnectionInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ public function getHost();
5151
*/
5252
public function getUserPass();
5353

54+
/**
55+
* Get the URL path suffix, null if not set
56+
*
57+
* @return null|string;
58+
*/
59+
public function getPath();
60+
5461
/**
5562
* Check to see if this instance is marked as 'alive'
5663
*

0 commit comments

Comments
 (0)