Barryvdh\Queue\AsyncQueue::getCommand PHP Method

getCommand() protected method

Get the Artisan command as a string for the job id.
protected getCommand ( $id ) : string
return string
    protected function getCommand($id)
    {
        $connection = $this->connectionName;
        $cmd = '%s artisan queue:async %d %s';
        $cmd = $this->getBackgroundCommand($cmd);
        $binary = $this->getPhpBinary();
        return sprintf($cmd, $binary, $id, $connection);
    }