From 7d913df23f16ce99e1276004c23a9985006dc9b2 Mon Sep 17 00:00:00 2001 From: fabien Date: Wed, 11 Nov 2009 16:33:33 +0000 Subject: [PATCH] added setEnvironment to the Twig_LoaderInterface git-svn-id: http://svn.twig-project.org/trunk@128 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- lib/Twig/Loader.php | 5 +++++ lib/Twig/LoaderInterface.php | 7 +++++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/lib/Twig/Loader.php b/lib/Twig/Loader.php index 78759c1..c87bc0a 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 6780003..4682f08 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); } -- 1.7.2.5