芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/midiatech/vendor/twig/twig/src/TokenParser/FilterTokenParser.php
parser->getVarName(); $ref = new BlockReferenceExpression(new ConstantExpression($name, $token->getLine()), null, $token->getLine(), $this->getTag()); $filter = $this->parser->getExpressionParser()->parseFilterExpressionRaw($ref, $this->getTag()); $this->parser->getStream()->expect(Token::BLOCK_END_TYPE); $body = $this->parser->subparse([$this, 'decideBlockEnd'], true); $this->parser->getStream()->expect(Token::BLOCK_END_TYPE); $block = new BlockNode($name, $body, $token->getLine()); $this->parser->setBlock($name, $block); return new PrintNode($filter, $token->getLine(), $this->getTag()); } public function decideBlockEnd(Token $token) { return $token->test('endfilter'); } public function getTag() { return 'filter'; } } class_alias('Twig\TokenParser\FilterTokenParser', 'Twig_TokenParser_Filter');