interface StreamingEngineInterface
StreamingEngineInterface provides a method that knows how to stream a template.
stream(string|TemplateReferenceInterface $name, array $parameters = array()) Streams a template. |
Streams a template.
The implementation should output the content directly to the client.
string|TemplateReferenceInterface | $name | A template name or a TemplateReferenceInterface instance |
array | $parameters | An array of parameters to pass to the template |
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