From e462f7b668f2af150a47ccd453767d9853884558 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 31 Dec 2011 14:50:33 +0100 Subject: [PATCH] [Templating] simplified PhpEngine as it cannot implements the streaming interface --- src/Symfony/Component/Templating/PhpEngine.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/Symfony/Component/Templating/PhpEngine.php b/src/Symfony/Component/Templating/PhpEngine.php index 4b23ad669bb8..73be8ed3561c 100644 --- a/src/Symfony/Component/Templating/PhpEngine.php +++ b/src/Symfony/Component/Templating/PhpEngine.php @@ -28,7 +28,7 @@ * * @api */ -class PhpEngine implements EngineInterface, StreamingEngineInterface, \ArrayAccess +class PhpEngine implements EngineInterface, \ArrayAccess { protected $loader; protected $current; @@ -107,21 +107,6 @@ public function render($name, array $parameters = array()) return $content; } - /** - * Streams a template. - * - * @param mixed $name A template name or a TemplateReferenceInterface instance - * @param array $parameters An array of parameters to pass to the template - * - * @throws \RuntimeException if the template cannot be rendered - * - * @api - */ - public function stream($name, array $parameters = array()) - { - throw new \LogicException('The PHP engine does not support streaming.'); - } - /** * Returns true if the template exists. *