added setEnvironment to the Twig_LoaderInterface

git-svn-id: http://svn.twig-project.org/trunk@128 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
fabien
2009-11-11 16:33:33 +00:00
parent 688e4bb653
commit 7d913df23f
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -98,6 +98,11 @@ abstract class Twig_Loader implements Twig_LoaderInterface
return $cls;
}
/**
* Sets the Environment related to this loader.
*
* @param Twig_Environment $env A Twig_Environment instance
*/
public function setEnvironment(Twig_Environment $env)
{
$this->env = $env;
+7
View File
@@ -26,4 +26,11 @@ interface Twig_LoaderInterface
* @return string The class name of the compiled template
*/
public function load($name);
/**
* Sets the Environment related to this loader.
*
* @param Twig_Environment $env A Twig_Environment instance
*/
public function setEnvironment(Twig_Environment $env);
}