mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
updated phpdoc
This commit is contained in:
+15
-12
@@ -37,29 +37,32 @@ class Twig_Environment
|
||||
* Available options:
|
||||
*
|
||||
* * debug: When set to `true`, the generated templates have a __toString()
|
||||
* method that you can use to display the generated nodes (default to
|
||||
* false).
|
||||
* method that you can use to display the generated nodes (default to
|
||||
* false).
|
||||
*
|
||||
* * trim_blocks: Mimicks the behavior of PHP by removing the newline that
|
||||
* follows instructions if present (default to false).
|
||||
* follows instructions if present (default to false).
|
||||
*
|
||||
* * charset: The charset used by the templates (default to utf-8).
|
||||
*
|
||||
* * base_template_class: The base template class to use for generated
|
||||
* templates (default to Twig_Template).
|
||||
* templates (default to Twig_Template).
|
||||
*
|
||||
* * cache: Can be one of three values:
|
||||
* * false: disable the compilation cache (default)
|
||||
* * An absolute path where to store the compiled templates
|
||||
* * cache: An absolute path where to store the compiled templates, or
|
||||
* false to disable compilation cache (default)
|
||||
*
|
||||
* * auto_reload: Whether to reload the template is the original source changed.
|
||||
* If you don't provide the auto_reload option, it will be
|
||||
* determined automatically base on the debug value.
|
||||
* If you don't provide the auto_reload option, it will be
|
||||
* determined automatically base on the debug value.
|
||||
*
|
||||
* * strict_variables: Whether to ignore invalid variables in templates (default to the value of debug).
|
||||
* * strict_variables: Whether to ignore invalid variables in templates
|
||||
* (default to the value of debug).
|
||||
*
|
||||
* @param Twig_LoaderInterface $loader A Twig_LoaderInterface instance
|
||||
* @param array $options An array of options
|
||||
* @param Twig_LoaderInterface $loader A Twig_LoaderInterface instance
|
||||
* @param array $options An array of options
|
||||
* @param Twig_LexerInterface $lexer A Twig_LexerInterface instance
|
||||
* @param Twig_ParserInterface $parser A Twig_ParserInterface instance
|
||||
* @param Twig_CompilerInterface $compiler A Twig_CompilerInterface instance
|
||||
*/
|
||||
public function __construct(Twig_LoaderInterface $loader = null, $options = array(), Twig_LexerInterface $lexer = null, Twig_ParserInterface $parser = null, Twig_CompilerInterface $compiler = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user