added Twig_Environment::load() as an alias for loadTemplate()
authorFabien Potencier <fabien.potencier@gmail.com>
Tue, 22 Mar 2011 10:58:42 +0000 (11:58 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Tue, 22 Mar 2011 10:58:42 +0000 (11:58 +0100)
lib/Twig/Environment.php

index 92809ed..440a2f3 100644 (file)
@@ -269,6 +269,11 @@ class Twig_Environment
         return $this->templateClassPrefix;
     }
 
+    public function load($name)
+    {
+        return $this->loadTemplate($name);
+    }
+
     /**
      * Loads a template by name.
      *