You are here

public function Twig_Template::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Template.php \Twig_Template::__construct()

Constructor.

Parameters

Twig_Environment $env A Twig_Environment instance:

1 call to Twig_Template::__construct()
Twig_TemplateTest::__construct in vendor/twig/twig/test/Twig/Tests/TemplateTest.php
Constructor.
1 method overrides Twig_Template::__construct()
Twig_TemplateTest::__construct in vendor/twig/twig/test/Twig/Tests/TemplateTest.php
Constructor.

File

vendor/twig/twig/lib/Twig/Template.php, line 33

Class

Twig_Template
Default base class for compiled templates.

Code

public function __construct(Twig_Environment $env) {
  $this->env = $env;
}