mirror of
https://github.com/predis/predis.git
synced 2026-08-31 12:43:31 +00:00
Expose underlying client object from pub/sub iterators.
This commit is contained in:
@@ -41,6 +41,16 @@ class PubSubContext extends AbstractPubSubContext
|
||||
$this->genericSubscribeInit('psubscribe');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the underlying client instance used by the pub/sub iterator.
|
||||
*
|
||||
* @return ClientInterface
|
||||
*/
|
||||
public function getClient()
|
||||
{
|
||||
return $this->client;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the passed client instance satisfies the required conditions
|
||||
* needed to initialize a Publish / Subscribe context.
|
||||
|
||||
Reference in New Issue
Block a user