StreamingEngineInterface

interface StreamingEngineInterface

StreamingEngineInterface provides a method that knows how to stream a template.

Methods

stream(string|TemplateReferenceInterface $name, array $parameters = array())

Streams a template.

Details

stream(string|TemplateReferenceInterface $name, array $parameters = array())

Streams a template.

The implementation should output the content directly to the client.

Parameters

string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance
array $parameters An array of parameters to pass to the template

Exceptions

RuntimeException if the template cannot be rendered
LogicException if the template cannot be streamed
doc_Symfony
2016-10-28 06:33:12
Comments
Leave a Comment

Please login to continue.