[Templating] simplified PhpEngine as it cannot implements the streaming interface

This commit is contained in:
Fabien Potencier 2011-12-31 14:50:33 +01:00
parent 6c6d91ed74
commit e462f7b668

View File

@ -28,7 +28,7 @@ if (!defined('ENT_SUBSTITUTE')) {
*
* @api
*/
class PhpEngine implements EngineInterface, StreamingEngineInterface, \ArrayAccess
class PhpEngine implements EngineInterface, \ArrayAccess
{
protected $loader;
protected $current;
@ -107,21 +107,6 @@ class PhpEngine implements EngineInterface, StreamingEngineInterface, \ArrayAcce
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.
*