mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
added Twig_Loader_Filesystem::getNamespaces()
This commit is contained in:
@@ -42,6 +42,18 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface
|
|||||||
return isset($this->paths[$namespace]) ? $this->paths[$namespace] : array();
|
return isset($this->paths[$namespace]) ? $this->paths[$namespace] : array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the path namespaces.
|
||||||
|
*
|
||||||
|
* The "__main__" namespace is always defined.
|
||||||
|
*
|
||||||
|
* @return array The array of defined namespaces
|
||||||
|
*/
|
||||||
|
public function getNamespaces()
|
||||||
|
{
|
||||||
|
return array_keys($this->paths[$namespace]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the paths where templates are stored.
|
* Sets the paths where templates are stored.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user