src/YAAP/Theme/ThemeServiceProvider.php
public function register()
	{

        // init theme with default finder
        $this->app->singleton('theme', function($app) {
            $theme = new Theme($app, $this->app['view']->getFinder());
            return $theme;
        });


        // merge & publish config
        $configPath = __DIR__ . '/../../config/config.php';
        $this->mergeConfigFrom($configPath, 'theme');
        $this->publishes([$configPath => config_path('theme.php')]);


        $this->app->singleton('theme.create',function ($app) {
            return new Commands\ThemeGeneratorCommand($app['config'], $app['files']);
        });

        $this->app->singleton('theme.destroy',function ($app) {
            return new Commands\ThemeDestroyCommand($app['config'], $app['files']);
        });

        $this->commands(
            'theme.create',
            'theme.destroy'
        );


	}
public function register()
	{

        // init theme with default finder
        $this->app->singleton('theme', function($app) {
            $theme = new Theme($app, $this->app['view']->getFinder());
            return $theme;
        });


        // merge & publish config
        $configPath = __DIR__ . '/../../config/config.php';
        $this->mergeConfigFrom($configPath, 'theme');
        $this->publishes([$configPath => config_path('theme.php')]);


        $this->app->singleton('theme.create',function ($app) {
            return new Commands\ThemeGeneratorCommand($app['config'], $app['files']);
        });

        $this->app->singleton('theme.destroy',function ($app) {
            return new Commands\ThemeDestroyCommand($app['config'], $app['files']);
        });

        $this->commands(
            'theme.create',
            'theme.destroy'
        );


	}
Register the service provider.

@return void