TwigEngine
class TwigEngine implements EngineInterface, StreamingEngineInterface
This engine knows how to render Twig templates.
Methods
string
bool
bool
supports(string|TemplateReferenceInterface $name)
Returns true if this class is able to render the given template.
Details
at line line 35
__construct(Twig_Environment $environment, TemplateNameParserInterface $parser)
Constructor.
at line line 48
string
render(string|TemplateReferenceInterface $name, array $parameters = array())
Renders a template.
at line line 60
stream(string|TemplateReferenceInterface $name, array $parameters = array())
Streams a template.
The implementation should output the content directly to the client.
at line line 70
bool
exists(string|TemplateReferenceInterface $name)
Returns true if the template exists.
at line line 98
bool
supports(string|TemplateReferenceInterface $name)
Returns true if this class is able to render the given template.