mirror of
https://github.com/predis/predis.git
synced 2026-08-24 21:59:38 +00:00
Rename Predis\Client::pubSubContext() to Predis\Client::pubSub().
This commit is contained in:
@@ -9,7 +9,7 @@ require 'SharedConfigurations.php';
|
||||
$redis = new Predis\Client($single_server + array('read_write_timeout' => 0));
|
||||
|
||||
// Initialize a new pubsub context
|
||||
$pubsub = $redis->pubSubContext();
|
||||
$pubsub = $redis->pubSub();
|
||||
|
||||
// Subscribe to your channels
|
||||
$pubsub->subscribe('control_channel', 'notifications');
|
||||
|
||||
@@ -201,7 +201,7 @@ class Client {
|
||||
return isset($block) ? $transaction->execute($block) : $transaction;
|
||||
}
|
||||
|
||||
public function pubSubContext(/* arguments */) {
|
||||
public function pubSub(/* arguments */) {
|
||||
return $this->sharedInitializer(func_get_args(), 'initPubSub');
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class DispatcherLoop {
|
||||
public function __construct(Client $client) {
|
||||
$this->_callbacks = array();
|
||||
$this->_client = $client;
|
||||
$this->_pubSubContext = $client->pubSubContext();
|
||||
$this->_pubSubContext = $client->pubSub();
|
||||
}
|
||||
|
||||
protected function validateCallback($callback) {
|
||||
|
||||
Reference in New Issue
Block a user