You are here

public function Twig_Loader_Chain::__construct in Zircon Profile 8

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

Constructor.

Parameters

Twig_LoaderInterface[] $loaders An array of loader instances:

File

vendor/twig/twig/lib/Twig/Loader/Chain.php, line 27

Class

Twig_Loader_Chain
Loads templates from other loaders.

Code

public function __construct(array $loaders = array()) {
  foreach ($loaders as $loader) {
    $this
      ->addLoader($loader);
  }
}