Explorar el Código

Fixed #81. Removed obsolete ‘Job’ concatenation in callJob

Victor Shcherbakov hace 11 años
padre
commit
9cb63fcec9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Service/GearmanClient.php

+ 1 - 1
Service/GearmanClient.php

@@ -281,7 +281,7 @@ class GearmanClient extends AbstractGearmanService
     public function callJob($name, $params = '', $unique = null)
     {
        $worker = $this->getJob($name);
-       $methodCallable = $worker['job']['defaultMethod'] . 'Job';
+       $methodCallable = $worker['job']['defaultMethod'];
 
        return $this->enqueue($name, $params, $methodCallable, $unique);
     }