function Lexer::__construct
Same name in this branch
- 11.1.x vendor/phpstan/phpdoc-parser/src/Lexer/Lexer.php \PHPStan\PhpDocParser\Lexer\Lexer::__construct()
- 11.1.x vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php \Seld\JsonLint\Lexer::__construct()
File
-
vendor/
twig/ twig/ src/ Lexer.php, line 62
Class
- Lexer
- @author Fabien Potencier <fabien@symfony.com>
Namespace
TwigCode
public function __construct(Environment $env, array $options = []) {
$this->env = $env;
$this->options = array_merge([
'tag_comment' => [
'{#',
'#}',
],
'tag_block' => [
'{%',
'%}',
],
'tag_variable' => [
'{{',
'}}',
],
'whitespace_trim' => '-',
'whitespace_line_trim' => '~',
'whitespace_line_chars' => ' \\t\\0\\x0B',
'interpolation' => [
'#{',
'}',
],
], $options);
}