瀏覽代碼

Minor reorganization, nothing worth mentioning.

Daniele Alessandri 13 年之前
父節點
當前提交
86256f2819
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      lib/Predis/Network/WebdisConnection.php

+ 8 - 8
lib/Predis/Network/WebdisConnection.php

@@ -118,14 +118,6 @@ class WebdisConnection implements IConnectionSingle {
         return true;
     }
 
-    public function writeCommand(ICommand $command) {
-        $this->throwNotSupportedException(__FUNCTION__);
-    }
-
-    public function readResponse(ICommand $command) {
-        $this->throwNotSupportedException(__FUNCTION__);
-    }
-
     protected function getCommandId(ICommand $command) {
         switch (($commandId = $command->getId())) {
             case 'AUTH':
@@ -141,6 +133,14 @@ class WebdisConnection implements IConnectionSingle {
         }
     }
 
+    public function writeCommand(ICommand $command) {
+        $this->throwNotSupportedException(__FUNCTION__);
+    }
+
+    public function readResponse(ICommand $command) {
+        $this->throwNotSupportedException(__FUNCTION__);
+    }
+
     public function executeCommand(ICommand $command) {
         $resource = $this->_resource;
         $commandId = $this->getCommandId($command);