PHP Class Symfony\Bundle\TwigBundle\TwigEngine

Author: Fabien Potencier ([email protected])
Inheritance: implements Symfony\Bundle\FrameworkBundle\Templating\EngineInterface, implements Symfony\Component\Templating\StreamingEngineInterface
ファイルを表示 Open project: symfony/symfony Class Usage Examples

Protected Properties

Property Type Description
$locator

Public Methods

Method Description
__construct ( Twig_Environment $environment, Symfony\Component\Templating\TemplateNameParserInterface $parser, Symfony\Component\Config\FileLocatorInterface $locator ) Constructor.
render ( $name, array $parameters = [] )
renderResponse ( $view, array $parameters = [], Response $response = null )

Method Details

__construct() public method

Constructor.
public __construct ( Twig_Environment $environment, Symfony\Component\Templating\TemplateNameParserInterface $parser, Symfony\Component\Config\FileLocatorInterface $locator )
$environment Twig_Environment A \Twig_Environment instance
$parser Symfony\Component\Templating\TemplateNameParserInterface A TemplateNameParserInterface instance
$locator Symfony\Component\Config\FileLocatorInterface A FileLocatorInterface instance

render() public method

public render ( $name, array $parameters = [] )
$parameters array

renderResponse() public method

public renderResponse ( $view, array $parameters = [], Response $response = null )
$parameters array
$response Symfony\Component\HttpFoundation\Response

Property Details

$locator protected_oe property

protected $locator