You are here

public function Twig_Environment::setLoader in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/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/Environment.php
Creates a template from source.
Twig_Environment::__construct in vendor/Twig/Environment.php
Constructor.

File

vendor/Twig/Environment.php, line 687

Class

Twig_Environment
Stores the Twig configuration.

Code

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