Skip to content

Commit

Permalink
added setEnvironment to the Twig_LoaderInterface
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.twig-project.org/trunk@128 93ef8e89-cb99-4229-a87c-7fa0fa45744b
  • Loading branch information
fabien committed Nov 11, 2009
1 parent 688e4bb commit 7d913df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Twig/Loader.php
Expand Up @@ -98,6 +98,11 @@ public function load($name)
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;
Expand Down
7 changes: 7 additions & 0 deletions lib/Twig/LoaderInterface.php
Expand Up @@ -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);
}

0 comments on commit 7d913df

Please sign in to comment.