Parcourir la source

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

Victor Shcherbakov il y a 11 ans
Parent
commit
9cb63fcec9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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);
     }