瀏覽代碼

[Templating] added a getLoader() to the Engine class

Fabien Potencier 15 年之前
父節點
當前提交
41d35ab898
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      src/Symfony/Components/Templating/Engine.php

+ 10 - 0
src/Symfony/Components/Templating/Engine.php

@@ -308,6 +308,16 @@ class Engine
     return $this->charset;
   }
 
+  /**
+   * Gets the loader associated with this engine.
+   *
+   * @return LoaderInterface A LoaderInterface instance
+   */
+  public function getLoader()
+  {
+    return $this->loader;
+  }
+
   /**
    * Sets a template renderer.
    *