mirror of
https://github.com/predis/predis.git
synced 2026-10-10 22:07:31 +00:00
Rename certain namespaces, interfaces and classes.
Now we follow a Symfony2-like naming convention for namespaces, interfaces and classes sticking with one clear rule. - Renamed namespaces: - Predis\Network - Predis\Profiles - Predis\Iterators - Predis\Options - Predis\Commands - Predis\Commands\Processors - Renamed interfaces: - Predis\IReplyObject - Predis\IRedisServerError - Predis\IConnectionFactory - Predis\IConnectionParameters - Predis\Options\IOption - Predis\Options\IClientOptions - Predis\Profile\IServerProfile - Predis\Pipeline\IPipelineExecutor - Predis\Distribution\INodeKeyGenerator - Predis\Distribution\IDistributionStrategy - Predis\Protocol\IProtocolProcessor - Predis\Protocol\IResponseReader - Predis\Protocol\IResponseHandler - Predis\Protocol\ICommandSerializer - Predis\Protocol\IComposableProtocolProcessor - Predis\Network\IConnection - Predis\Network\IConnectionSingle - Predis\Network\IConnectionComposable - Predis\Network\IConnectionCluster - Predis\Network\IConnectionReplication - Predis\Commands\ICommand - Predis\Commands\IPrefixable - Predis\Command\Processor\ICommandProcessor - Predis\Command\Processor\ICommandProcessorChain - Predis\Command\Processor\IProcessingSupport - Renamed Classes: - Predis\Commands\Command - Predis\Network\ConnectionBase - Classes moved to different namespaces: - Predis\MonitorContext Meh
This commit is contained in:
@@ -12,10 +12,10 @@
|
||||
namespace Predis\Protocol\Text;
|
||||
|
||||
use Predis\Helpers;
|
||||
use Predis\Protocol\IResponseHandler;
|
||||
use Predis\Protocol\ResponseHandlerInterface;
|
||||
use Predis\Protocol\ProtocolException;
|
||||
use Predis\Network\IConnectionComposable;
|
||||
use Predis\Iterators\MultiBulkResponseSimple;
|
||||
use Predis\Connection\ComposableConnectionInterface;
|
||||
use Predis\Iterator\MultiBulkResponseSimple;
|
||||
|
||||
/**
|
||||
* Implements a response handler for iterable multi-bulk replies using the
|
||||
@@ -24,16 +24,16 @@ use Predis\Iterators\MultiBulkResponseSimple;
|
||||
* @link http://redis.io/topics/protocol
|
||||
* @author Daniele Alessandri <suppakilla@gmail.com>
|
||||
*/
|
||||
class ResponseMultiBulkStreamHandler implements IResponseHandler
|
||||
class ResponseMultiBulkStreamHandler implements ResponseHandlerInterface
|
||||
{
|
||||
/**
|
||||
* Handles a multi-bulk reply returned by Redis in a streamable fashion.
|
||||
*
|
||||
* @param IConnectionComposable $connection Connection to Redis.
|
||||
* @param ComposableConnectionInterface $connection Connection to Redis.
|
||||
* @param string $lengthString Number of items in the multi-bulk reply.
|
||||
* @return MultiBulkResponseSimple
|
||||
*/
|
||||
public function handle(IConnectionComposable $connection, $lengthString)
|
||||
public function handle(ComposableConnectionInterface $connection, $lengthString)
|
||||
{
|
||||
$length = (int) $lengthString;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user