diff --git a/lib/Twig/Loader.php b/lib/Twig/Loader.php index 78759c19f..c87bc0a5d 100644 --- a/lib/Twig/Loader.php +++ b/lib/Twig/Loader.php @@ -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; diff --git a/lib/Twig/LoaderInterface.php b/lib/Twig/LoaderInterface.php index 678000352..4682f083e 100644 --- a/lib/Twig/LoaderInterface.php +++ b/lib/Twig/LoaderInterface.php @@ -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); }