src/YAAP/Theme/Commands/ThemeGeneratorCommand.php
public function handle()
	{
		// The theme is already exists.
		if ($this->files->isDirectory($this->getPath(null)))
		{
			return $this->error('Theme "'.$this->getTheme().'" is already exists.');
		}


		// Directories.
		$container = $this->config->get('theme.containerDir');

        $this->makeDir($this->getPath($container['layout']));
        $this->makeDir($this->getPath($container['partial']));
        $this->makeDir($this->getPath($container['view']));

        $this->makeFile($container['layout'].'/master.blade.php', $this->getTemplate('layout.blade'));
        $this->makeFile($container['partial'].'/header.blade.php', $this->getTemplate('header.blade'));
        $this->makeFile($container['partial'].'/footer.blade.php', $this->getTemplate('footer.blade'));
        $this->makeFile($container['view'].'/hello.blade.php', $this->getTemplate('view.blade'));



        //assets
        $this->makeDir($this->getAssetsPath('css'));
        $this->makeAssetsFile('css/.gitkeep', '');
        $this->makeAssetsFile('css/styles.css', $this->getTemplate('styles.css'));

        $this->makeDir($this->getAssetsPath('js'));
        $this->makeAssetsFile('js/.gitkeep', '');

        $this->makeDir($this->getAssetsPath('img'));
        $this->makeAssetsFile('img/.gitkeep', '');


		// Generate inside config.
		$this->makeFile('config.php', $this->getTemplate('config', ['%theme_name%' => $this->getTheme()]));

		$this->info('Theme "'.$this->getTheme().'" has been created.');
	}
public function handle()
	{
		// The theme is already exists.
		if ($this->files->isDirectory($this->getPath(null)))
		{
			return $this->error('Theme "'.$this->getTheme().'" is already exists.');
		}


		// Directories.
		$container = $this->config->get('theme.containerDir');

        $this->makeDir($this->getPath($container['layout']));
        $this->makeDir($this->getPath($container['partial']));
        $this->makeDir($this->getPath($container['view']));

        $this->makeFile($container['layout'].'/master.blade.php', $this->getTemplate('layout.blade'));
        $this->makeFile($container['partial'].'/header.blade.php', $this->getTemplate('header.blade'));
        $this->makeFile($container['partial'].'/footer.blade.php', $this->getTemplate('footer.blade'));
        $this->makeFile($container['view'].'/hello.blade.php', $this->getTemplate('view.blade'));



        //assets
        $this->makeDir($this->getAssetsPath('css'));
        $this->makeAssetsFile('css/.gitkeep', '');
        $this->makeAssetsFile('css/styles.css', $this->getTemplate('styles.css'));

        $this->makeDir($this->getAssetsPath('js'));
        $this->makeAssetsFile('js/.gitkeep', '');

        $this->makeDir($this->getAssetsPath('img'));
        $this->makeAssetsFile('img/.gitkeep', '');


		// Generate inside config.
		$this->makeFile('config.php', $this->getTemplate('config', ['%theme_name%' => $this->getTheme()]));

		$this->info('Theme "'.$this->getTheme().'" has been created.');
	}
Execute the console command.

@return void