W3cubDocs

/Symfony 4.1

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Templating/StreamingEngineInterface.html