Move Publish/Subscribe related classes to the Predis\PubSub namespace.

This commit is contained in:
Daniele Alessandri
2011-11-28 10:01:21 +01:00
parent 7bdc2e6195
commit 4882e23319
4 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ PUBLISH control terminate_dispatcher
$client = new Predis\Client($single_server + array('read_write_timeout' => 0));
// Create a Predis\DispatcherLoop instance and attach a bunch of callbacks.
$dispatcher = new Predis\DispatcherLoop($client);
$dispatcher = new Predis\PubSub\DispatcherLoop($client);
// Demonstrate how to use a callable class as a callback for Predis\DispatcherLoop.
class EventsListener implements Countable
+1
View File
@@ -16,6 +16,7 @@ use Predis\Network\IConnection;
use Predis\Network\IConnectionSingle;
use Predis\Profiles\IServerProfile;
use Predis\Profiles\ServerProfile;
use Predis\PubSub\PubSubContext;
use Predis\Pipeline\PipelineContext;
use Predis\Transaction\MultiExecContext;
@@ -9,7 +9,10 @@
* file that was distributed with this source code.
*/
namespace Predis;
namespace Predis\PubSub;
use Predis\Client;
use Predis\ClientException;
/**
* Method-dispatcher loop built around the client-side abstraction of a Redis
@@ -9,7 +9,11 @@
* file that was distributed with this source code.
*/
namespace Predis;
namespace Predis\PubSub;
use Predis\Client;
use Predis\Helpers;
use Predis\ClientException;
/**
* Client-side abstraction of a Publish / Subscribe context.