AsgardCms/Workshop

View on GitHub
Scaffold/Theme/FileTypes/BasicView.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Modules\Workshop\Scaffold\Theme\FileTypes;

use Modules\Workshop\Scaffold\Theme\Traits\FindsThemePath;

class BasicView extends BaseFileType implements FileType
{
    use FindsThemePath;

    /**
     * Generate the current file type
     * @return string
     */
    public function generate()
    {
        $stub = $this->finder->get(__DIR__ . '/../stubs/index.blade.stub');

        $this->finder->put($this->themePathForFile($this->options['name'], '/views/default.blade.php'), $stub);
    }
}