protected function registerCommands(): void
    {
        $this->app->singleton('command.couchbase.indexes', function ($app) {
            return new IndexFinderCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.primary.index.create', function ($app) {
            return new PrimaryIndexCreatorCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.primary.index.drop', function ($app) {
            return new PrimaryIndexRemoverCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.index.create', function ($app) {
            return new IndexCreatorCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.index.drop', function ($app) {
            return new IndexRemoverCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.queue.index.create', function ($app) {
            return new QueueCreatorCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.design.document.create', function ($app) {
            return new DesignCreatorCommand(
                $app['Illuminate\Database\DatabaseManager'],
                $app['config']->get('couchbase.design')
            );
        });
        $this->commands([
            'command.couchbase.indexes',
            'command.couchbase.primary.index.create',
            'command.couchbase.primary.index.drop',
            'command.couchbase.index.create',
            'command.couchbase.index.drop',
            'command.couchbase.queue.index.create',
            'command.couchbase.design.document.create',
        ]);
    }
protected function registerCommands(): void
    {
        $this->app->singleton('command.couchbase.indexes', function ($app) {
            return new IndexFinderCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.primary.index.create', function ($app) {
            return new PrimaryIndexCreatorCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.primary.index.drop', function ($app) {
            return new PrimaryIndexRemoverCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.index.create', function ($app) {
            return new IndexCreatorCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.index.drop', function ($app) {
            return new IndexRemoverCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.queue.index.create', function ($app) {
            return new QueueCreatorCommand($app['Illuminate\Database\DatabaseManager']);
        });
        $this->app->singleton('command.couchbase.design.document.create', function ($app) {
            return new DesignCreatorCommand(
                $app['Illuminate\Database\DatabaseManager'],
                $app['config']->get('couchbase.design')
            );
        });
        $this->commands([
            'command.couchbase.indexes',
            'command.couchbase.primary.index.create',
            'command.couchbase.primary.index.drop',
            'command.couchbase.index.create',
            'command.couchbase.index.drop',
            'command.couchbase.queue.index.create',
            'command.couchbase.design.document.create',
        ]);
    }
protected function registerCommands ( ) : void { $ this -> app -> singleton ( 'command.couchbase.indexes' , function ( $ app ) { return new IndexFinderCommand ( $ app [ 'Illuminate\Database\DatabaseManager' ] ) ; } ) ; $ this -> app -> singleton ( 'command.couchbase.primary.index.create' , function ( $ app ) { return new PrimaryIndexCreatorCommand ( $ app [ 'Illuminate\Database\DatabaseManager' ] ) ; } ) ; $ this -> app -> singleton ( 'command.couchbase.primary.index.drop' , function ( $ app ) { return new PrimaryIndexRemoverCommand ( $ app [ 'Illuminate\Database\DatabaseManager' ] ) ; } ) ; $ this -> app -> singleton ( 'command.couchbase.index.create' , function ( $ app ) { return new IndexCreatorCommand ( $ app [ 'Illuminate\Database\DatabaseManager' ] ) ; } ) ; $ this -> app -> singleton ( 'command.couchbase.index.drop' , function ( $ app ) { return new IndexRemoverCommand ( $ app [ 'Illuminate\Database\DatabaseManager' ] ) ; } ) ; $ this -> app -> singleton ( 'command.couchbase.queue.index.create' , function ( $ app ) { return new QueueCreatorCommand ( $ app [ 'Illuminate\Database\DatabaseManager' ] ) ; } ) ; $ this -> app -> singleton ( 'command.couchbase.design.document.create' , function ( $ app ) { return new DesignCreatorCommand ( $ app [ 'Illuminate\Database\DatabaseManager' ] , $ app [ 'config' ] -> get ( 'couchbase.design' ) ) ; } ) ; $ this -> commands ( [ 'command.couchbase.indexes' , 'command.couchbase.primary.index.create' , 'command.couchbase.primary.index.drop' , 'command.couchbase.index.create' , 'command.couchbase.index.drop' , 'command.couchbase.queue.index.create' , 'command.couchbase.design.document.create' , ] ) ; }
register laravel-couchbase commands
register laravel - couchbase commands