Twig_Lexer::__construct PHP Method

__construct() public method

public __construct ( Twig_Environment $env = null, array $options = [] )
$env Twig_Environment
$options array
    public function __construct(Twig_Environment $env = null, array $options = array())
    {
        if (null !== $env) {
            $this->setEnvironment($env);
        }

        $this->options = array_merge(array(
            'tag_comment'  => array('{#', '#}'),
            'tag_block'    => array('{%', '%}'),
            'tag_variable' => array('{{', '}}'),
        ), $options);
    }