Service/GearmanClient.php
protected function enqueue($jobName, $params, $method, $unique)
    {
        $worker = $this->getJob($jobName);

        $unique = $this
            ->uniqueJobIdentifierGenerator
            ->generateUniqueKey($jobName, $params, $unique, $method);

        return $worker
            ? $this->doEnqueue($worker, $params, $method, $unique)
            : false;
    }
protected function enqueue($jobName, $params, $method, $unique)
    {
        $worker = $this->getJob($jobName);

        $unique = $this
            ->uniqueJobIdentifierGenerator
            ->generateUniqueKey($jobName, $params, $unique, $method);

        return $worker
            ? $this->doEnqueue($worker, $params, $method, $unique)
            : false;
    }
protected function enqueue ( $ jobName , $ params , $ method , $ unique ) { $ worker = $ this -> getJob ( $ jobName ) ; $ unique = $ this -> uniqueJobIdentifierGenerator -> generateUniqueKey ( $ jobName , $ params , $ unique , $ method ) ; return $ worker ? $ this -> doEnqueue ( $ worker , $ params , $ method , $ unique ) : false ; }
Get real worker from job name and enqueues the action given one
method.

@param string $jobName A GearmanBundle registered function the worker is to execute
@param string $params  Parameters to send to job as string
@param string $method  Method to execute
@param string $unique  A unique ID used to identify a particular task

@return mixed Return result of the call. If worker is not valid, return false
Get real worker from job name and enqueues the action given one method .