src/Spiritix/LadaCache/LadaCacheServiceProvider.php
private function registerCommand()
    {
        $this->app->singleton('command.lada-cache.flush', function() {
            return new FlushCommand();
        });

        $this->app->singleton('command.lada-cache.enable', function() {
            return new EnableCommand();
        });

        $this->app->singleton('command.lada-cache.disable', function() {
            return new DisableCommand();
        });

        $this->commands([
            'command.lada-cache.flush',
            'command.lada-cache.enable',
            'command.lada-cache.disable',
        ]);
    }
private function registerCommand()
    {
        $this->app->singleton('command.lada-cache.flush', function() {
            return new FlushCommand();
        });

        $this->app->singleton('command.lada-cache.enable', function() {
            return new EnableCommand();
        });

        $this->app->singleton('command.lada-cache.disable', function() {
            return new DisableCommand();
        });

        $this->commands([
            'command.lada-cache.flush',
            'command.lada-cache.enable',
            'command.lada-cache.disable',
        ]);
    }
private function registerCommand ( ) { $ this -> app -> singleton ( 'command.lada-cache.flush' , function ( ) { return new FlushCommand ( ) ; } ) ; $ this -> app -> singleton ( 'command.lada-cache.enable' , function ( ) { return new EnableCommand ( ) ; } ) ; $ this -> app -> singleton ( 'command.lada-cache.disable' , function ( ) { return new DisableCommand ( ) ; } ) ; $ this -> commands ( [ 'command.lada-cache.flush' , 'command.lada-cache.enable' , 'command.lada-cache.disable' , ] ) ; }
Register custom commands.
Register custom commands .