mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-11 04:36:47 +00:00
added getLoaders() on the chain loader
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user