src/Managers/TemplateManager.php
public function getGeneratorOrFail(string $filetype)
    {
        $generators = config('amethyst.template.generators', []);

        $generator = isset($generators[$filetype]) ? $generators[$filetype] : null;

        if (!$generator) {
            throw new Exceptions\GeneratorNotFoundException(sprintf('No generator found for: %s', $filetype));
        }

        return $generator;
    }
public function getGeneratorOrFail(string $filetype)
    {
        $generators = config('amethyst.template.generators', []);

        $generator = isset($generators[$filetype]) ? $generators[$filetype] : null;

        if (!$generator) {
            throw new Exceptions\GeneratorNotFoundException(sprintf('No generator found for: %s', $filetype));
        }

        return $generator;
    }
public function getGeneratorOrFail ( string $ filetype ) { $ generators = config ( 'amethyst.template.generators' , [ ] ) ; $ generator = isset ( $ generators [ $ filetype ] ) ? $ generators [ $ filetype ] : null ; if ( ! $ generator ) { throw new Exceptions \ GeneratorNotFoundException ( sprintf ( 'No generator found for: %s' , $ filetype ) ) ; } return $ generator ; }
Retrieve the generator given the template or throw exception.

@param string $filetype

@return \Railken\Template\Generators\GeneratorContract
Retrieve the generator given the template or throw exception .