get_class($job), 'params' => $job->getJobParams(), )); } /** * Execute a job * * @access public * @param Job $job */ public function executeJob(Job $job) { $payload = $job->getBody(); $className = $payload['class']; if (DEBUG) { $this->logger->debug(__METHOD__.' Received job => '.$className); } $worker = new $className($this->container); call_user_func_array(array($worker, 'execute'), $payload['params']); } }