mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user