Barryvdh\Queue\AsyncServiceProvider::registerAsyncCommand PHP Method

registerAsyncCommand() protected method

Register the queue listener console command.
protected registerAsyncCommand ( ) : void
return void
    protected function registerAsyncCommand()
    {
        $this->app->singleton('command.queue.async', function () {
            return new AsyncCommand($this->app['queue.worker']);
        });
    }