public function Twig_Loader_Chain::__construct in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Loader/Chain.php \Twig_Loader_Chain::__construct()
Constructor.
Parameters
Twig_LoaderInterface[] $loaders An array of loader instances:
File
- vendor/
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);
}
}