mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 02:46:29 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user