public function Twig_Environment::getLexer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/Twig/Environment.php \Twig_Environment::getLexer()
Gets the Lexer instance.
Return value
Twig_LexerInterface A Twig_LexerInterface instance
File
- vendor/
twig/ twig/ lib/ Twig/ Environment.php, line 546
Class
- Twig_Environment
- Stores the Twig configuration.
Code
public function getLexer() {
if (null === $this->lexer) {
$this->lexer = new Twig_Lexer($this);
}
return $this->lexer;
}