Property | Type | Description | |
---|---|---|---|
$loader | Twig_LoaderInterface | Reference to twig current template loader | |
$twig | Twig_Environment | Reference to twig engine environment object |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) : |
If configuration options are passed then twig environment is initialized right away | |
render ( string $tpl, array $vars = [] ) : string | Parse the incoming template |
Method | Description | |
---|---|---|
getEnvironment ( boolean $reset = false ) : Twig_Environment | Get (init if necessary) twig environment | |
getLoader ( ) : Twig_LoaderInterface | Get template loader chain |
public __construct ( array $options = [] ) : |
||
$options | array | Processor options |
return |
protected getEnvironment ( boolean $reset = false ) : Twig_Environment | ||
$reset | boolean | Force re-initialization (helpful for UTs) |
return | Twig_Environment |
protected getLoader ( ) : Twig_LoaderInterface | ||
return | Twig_LoaderInterface |
protected Twig_LoaderInterface $loader | ||
return | Twig_LoaderInterface |