private function makeThemeConfig($name, $author)
{
$file = new File();
$location = config('theme.path');
$path = $location . DIRECTORY_SEPARATOR . $this->themeNamespace . '/theme.json';
if (!$file->exists($path)) {
$stub = file_get_contents(__DIR__ . '/stubs/theme.stub');
$stub = str_replace('$NAME$', $name, $stub);
$stub = str_replace('$AUTHOR$', $author, $stub);
$stub = str_replace('$NAMESPACE$', $this->themeNamespace, $stub);
$file->put($path, $stub);
} else {
throw new \Exception('Theme config file already exists!');
}
}