mirror of
https://github.com/predis/predis.git
synced 2026-10-10 13:57:22 +00:00
Promote multibulk response iterators as Predis response objects.
Multibulk response iterators will not be passed anymore to the response parser method of the command that generated the response. Pipeline and transaction abstractions still consume interators returned as response items.
This commit is contained in:
@@ -11,8 +11,6 @@
|
||||
|
||||
namespace Predis\Command;
|
||||
|
||||
use Predis\Iterator\MultiBulkResponseTuple;
|
||||
|
||||
/**
|
||||
* @link http://redis.io/commands/config-set
|
||||
* @link http://redis.io/commands/config-get
|
||||
@@ -34,10 +32,6 @@ class ServerConfig extends AbstractCommand
|
||||
*/
|
||||
public function parseResponse($data)
|
||||
{
|
||||
if ($data instanceof \Iterator) {
|
||||
return new MultiBulkResponseTuple($data);
|
||||
}
|
||||
|
||||
if (is_array($data)) {
|
||||
$result = array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user