Procházet zdrojové kódy

Make it possible to pipeline instances of Predis\Command\ICommand directly.

Daniele Alessandri před 14 roky
rodič
revize
fee3866f54
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      lib/Predis/Pipeline/PipelineContext.php

+ 4 - 0
lib/Predis/Pipeline/PipelineContext.php

@@ -47,6 +47,10 @@ class PipelineContext {
         $this->_pipeline[] = $command;
     }
 
+    public function executeCommand(ICommand $command) {
+        $this->recordCommand($command);
+    }
+
     public function flushPipeline() {
         if (count($this->_pipeline) > 0) {
             $connection = $this->_client->getConnection();