Browse Source

Merge pull request #82 from focusshifter/master

Fixed #81. Removed obsolete ‘Job’ concatenation in callJob
Marc Morera 11 years ago
parent
commit
80e7dc25c3
1 changed files with 1 additions and 1 deletions
  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)
     public function callJob($name, $params = '', $unique = null)
     {
     {
        $worker = $this->getJob($name);
        $worker = $this->getJob($name);
-       $methodCallable = $worker['job']['defaultMethod'] . 'Job';
+       $methodCallable = $worker['job']['defaultMethod'];
 
 
        return $this->enqueue($name, $params, $methodCallable, $unique);
        return $this->enqueue($name, $params, $methodCallable, $unique);
     }
     }