Symfony\Bridge\Twig\TwigEngine
This engine knows how to render Twig templates.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class TwigEngine
implements
EngineInterface,StreamingEngineInterface
{
- // members
- protected $environment;
- protected $parser;
- // methods
- public void __construct()
- public string render()
- public void stream()
- public Boolean exists()
- public Boolean supports()
- protected Twig_TemplateInterface load()
Hierarchy
Extended by
Implements
Members
protected
- $environment
- $parser
Methods
protected
- load() — Loads the given template.
public
- __construct() — Constructor.
- exists() — Returns true if the template exists.
- render() — Renders a template.
- stream() — Streams a template.
- supports() — Returns true if this class is able to render the given template.