PHP Class Newscoop\PluginGeneratorBundle\Generator\Generator

Author: Fabien Potencier ([email protected])
Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
setSkeletonDirs ( array $skeletonDirs ) Sets an array of directories to look for templates.

Protected Methods

Method Description
getTwigEnvironment ( ) : Twig_Environment Get the twig environment that will render skeletons
render ( $template, $parameters )
renderFile ( $template, $target, $parameters )

Method Details

getTwigEnvironment() protected method

Get the twig environment that will render skeletons
protected getTwigEnvironment ( ) : Twig_Environment
return Twig_Environment

render() protected method

protected render ( $template, $parameters )

renderFile() protected method

protected renderFile ( $template, $target, $parameters )

setSkeletonDirs() public method

The directories must be sorted from the most specific to the most directory.
public setSkeletonDirs ( array $skeletonDirs )
$skeletonDirs array An array of skeleton dirs