public function TwigEnvironment::__construct

Constructs a TwigEnvironment object and stores cache and storage internally.

File

drupal/core/lib/Drupal/Core/Template/TwigEnvironment.php, line 28
Definition of Drupal\Core\Template\TwigEnvironment.

Class

TwigEnvironment
A class that defines a Twig environment for Drupal.

Namespace

Drupal\Core\Template

Code

public function __construct(\Twig_LoaderInterface $loader = NULL, $options = array()) {

  // @todo Pass as arguments from the DIC.
  $this->cache_object = cache();
  parent::__construct($loader, $options);
}