added setEnvironment to the Twig_LoaderInterface
authorfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Wed, 11 Nov 2009 16:33:33 +0000 (16:33 +0000)
committerfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Wed, 11 Nov 2009 16:33:33 +0000 (16:33 +0000)
git-svn-id: http://svn.twig-project.org/trunk@128 93ef8e89-cb99-4229-a87c-7fa0fa45744b

lib/Twig/Loader.php
lib/Twig/LoaderInterface.php

index 78759c1..c87bc0a 100644 (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;
index 6780003..4682f08 100644 (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);
 }