public function dispatchJob($job, $data = [], $handler = 'handler')
    {
        if ($this->isSingle()) {
            if (!is_object($job)) {
                $job = new $job;
            }
            return call_user_func_array([$job, $handler], ['data' => $data]);
        }

        return null;
    }
public function dispatchJob($job, $data = [], $handler = 'handler')
    {
        if ($this->isSingle()) {
            if (!is_object($job)) {
                $job = new $job;
            }
            return call_user_func_array([$job, $handler], ['data' => $data]);
        }

        return null;
    }
public function dispatchJob ( $ job , $ data = [ ] , $ handler = 'handler' ) { if ( $ this -> isSingle ( ) ) { if ( ! is_object ( $ job ) ) { $ job = new $ job ; } return call_user_func_array ( [ $ job , $ handler ] , [ 'data' => $ data ] ) ; } return null ; }
Dispatch a job

@param  $job
@param  array  $data
@param  string $handler
@return mixed
Dispatch a job