feature #2858 Add getLoaders() on the chain loader (fabpot)

This PR was merged into the 1.x branch.

Discussion
----------

Add getLoaders() on the chain loader

Commits
-------

31a549ce added getLoaders() on the chain loader
This commit is contained in:
Fabien Potencier
2019-03-03 20:49:04 +01:00
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
* 1.38.0 (2019-XX-XX)
* added Twig\Loader\ChainLoader::getLoaders()
* changed internal code to use the namespaced classes as much as possible
* 1.37.1 (2019-01-14)
+8
View File
@@ -43,6 +43,14 @@ class Twig_Loader_Chain implements LoaderInterface, Twig_ExistsLoaderInterface,
$this->hasSourceCache = [];
}
/**
* @return array
*/
public function getLoaders()
{
return $this->loaders;
}
public function getSource($name)
{
@trigger_error(sprintf('Calling "getSource" on "%s" is deprecated since 1.27. Use getSourceContext() instead.', \get_class($this)), E_USER_DEPRECATED);