added getLoaders() on the chain loader

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