src/Job/Executor/JobExecutor.php
protected function findJobHandler(Job $job)
    {
        foreach ($this->handlers as $type => $handler) {
            if ($job->getHandlerType() == $type) {
                return $handler;
            }
        }
        
        throw new \OutOfBoundsException(\sprintf('Job handler "%s" not found for job %s', $job->getHandlerType(), $job->getId()));
    }
protected function findJobHandler(Job $job)
    {
        foreach ($this->handlers as $type => $handler) {
            if ($job->getHandlerType() == $type) {
                return $handler;
            }
        }
        
        throw new \OutOfBoundsException(\sprintf('Job handler "%s" not found for job %s', $job->getHandlerType(), $job->getId()));
    }
protected function findJobHandler ( Job $ job ) { foreach ( $ this -> handlers as $ type => $ handler ) { if ( $ job -> getHandlerType ( ) == $ type ) { return $ handler ; } } throw new \ OutOfBoundsException ( \ sprintf ( 'Job handler "%s" not found for job %s' , $ job -> getHandlerType ( ) , $ job -> getId ( ) ) ) ; }
Find a handler for the given job by matching the handler type value of the job.

@param Job $job
@return JobHandlerInterface

@throws \OutOfBoundsException When no handler for the job could be resolved.
Find a handler for the given job by matching the handler type value of the job .