DelegatingEngine
class DelegatingEngine implements EngineInterface, StreamingEngineInterface
DelegatingEngine selects an engine for a given template.
Methods
__construct(array $engines = array())
Constructor.
string
bool
bool
supports(string|TemplateReferenceInterface $name)
Returns true if this class is able to render the given template.
Details
at line line 31
__construct(array $engines = array())
Constructor.
at line line 41
string
render(string|TemplateReferenceInterface $name, array $parameters = array())
Renders a template.
at line line 49
stream(string|TemplateReferenceInterface $name, array $parameters = array())
Streams a template.
The implementation should output the content directly to the client.
at line line 62
bool
exists(string|TemplateReferenceInterface $name)
Returns true if the template exists.
at line line 72
addEngine(EngineInterface $engine)
Adds an engine.
at line line 80
bool
supports(string|TemplateReferenceInterface $name)
Returns true if this class is able to render the given template.
at line line 100
EngineInterface
getEngine(string|TemplateReferenceInterface $name)
Get an engine able to render the given template.