You are here

public function Twig_Environment::setLoader in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Environment.php \Twig_Environment::setLoader()

Sets the Loader instance.

Parameters

Twig_LoaderInterface $loader A Twig_LoaderInterface instance:

2 calls to Twig_Environment::setLoader()
Twig_Environment::createTemplate in vendor/twig/twig/lib/Twig/Environment.php
Creates a template from source.
Twig_Environment::__construct in vendor/twig/twig/lib/Twig/Environment.php
Constructor.

File

vendor/twig/twig/lib/Twig/Environment.php, line 687

Class

Twig_Environment
Stores the Twig configuration.

Code

public function setLoader(Twig_LoaderInterface $loader) {
  $this->loader = $loader;
}