Navigation Menu

Skip to content

Commit

Permalink
[Templating] simplified PhpEngine as it cannot implements the streami…
Browse files Browse the repository at this point in the history
…ng interface
  • Loading branch information
fabpot committed Dec 31, 2011
1 parent 6c6d91e commit e462f7b
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/Symfony/Component/Templating/PhpEngine.php
Expand Up @@ -28,7 +28,7 @@
*
* @api
*/
class PhpEngine implements EngineInterface, StreamingEngineInterface, \ArrayAccess
class PhpEngine implements EngineInterface, \ArrayAccess
{
protected $loader;
protected $current;
Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit e462f7b

Please sign in to comment.