Symfony\Component\Templating\StreamingEngineInterface::stream
Streams a template.
The implementation should output the content directly to the client.
Signature
public function stream(mixed
$name,
array
$parameters )
Parameters
$name
— mixed- A template name or a TemplateReferenceInterface instance
$parameters
— array- An array of parameters to pass to the template
Errors/Exceptions
-
RuntimeException
- if the template cannot be rendered
-
LogicException
- if the template cannot be streamed