public function Twig_TokenParser::setParser in Translation template extractor 7.3
Same name and namespace in other branches
- 6.3 vendor/Twig/TokenParser.php \Twig_TokenParser::setParser()
Sets the parser associated with this token parser.
Parameters
Twig_Parser $parser A Twig_Parser instance:
Overrides Twig_TokenParserInterface::setParser
File
- vendor/
Twig/ TokenParser.php, line 29
Class
- Twig_TokenParser
- Base class for all token parsers.
Code
public function setParser(Twig_Parser $parser) {
$this->parser = $parser;
}