Fabien Potencier 14 лет назад
Родитель
Сommit
dd9e7367ef
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      src/Symfony/Component/Templating/Engine.php

+ 4 - 2
src/Symfony/Component/Templating/Engine.php

@@ -143,11 +143,13 @@ class Engine implements \ArrayAccess
     }
 
     /**
-     * Returns true if the template exists.
+     * Loads the given template.
      *
      * @param string $name A template name
      *
-     * @return Boolean true if the template exists, false otherwise
+     * @return Storage A Storage instance
+     *
+     * @throws \InvalidArgumentException if the template cannot be found
      */
     public function load($name)
     {