protected function createCommand($connection, $queue, ListenerOptions $options)
    {
        return array_filter([
            $this->phpBinary(),
            $this->artisanBinary(),
            'queue:work',
            $connection,
            '--once',
            "--queue={$queue}",
            "--delay={$options->delay}",
            "--memory={$options->memory}",
            "--sleep={$options->sleep}",
            "--tries={$options->maxTries}",
        ], function ($value) {
            return ! is_null($value);
        });
    }
protected function createCommand($connection, $queue, ListenerOptions $options)
    {
        return array_filter([
            $this->phpBinary(),
            $this->artisanBinary(),
            'queue:work',
            $connection,
            '--once',
            "--queue={$queue}",
            "--delay={$options->delay}",
            "--memory={$options->memory}",
            "--sleep={$options->sleep}",
            "--tries={$options->maxTries}",
        ], function ($value) {
            return ! is_null($value);
        });
    }
protected function createCommand ( $ connection , $ queue , ListenerOptions $ options ) { return array_filter ( [ $ this -> phpBinary ( ) , $ this -> artisanBinary ( ) , 'queue:work' , $ connection , '--once' , "--queue={$queue}" , "--delay={$options->delay}" , "--memory={$options->memory}" , "--sleep={$options->sleep}" , "--tries={$options->maxTries}" , ] , function ( $ value ) { return ! is_null ( $ value ) ; } ) ; }
Create the command with the listener options.

@param  string  $connection
@param  string  $queue
@param  \Illuminate\Queue\ListenerOptions  $options
@return array
Create the command with the listener options .