Переглянути джерело

[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.
    *