class FlushTokenParser
Flushes the output to the client.
@internal
Hierarchy
- class \Twig\TokenParser\AbstractTokenParser implements \Twig\TokenParser\TokenParserInterface
- class \Twig\TokenParser\FlushTokenParser extends \Twig\TokenParser\AbstractTokenParser
Expanded class hierarchy of FlushTokenParser
See also
flush()
1 file declares its use of FlushTokenParser
- CoreExtension.php in vendor/
twig/ twig/ src/ Extension/ CoreExtension.php
File
-
vendor/
twig/ twig/ src/ TokenParser/ FlushTokenParser.php, line 25
Namespace
Twig\TokenParserView source
final class FlushTokenParser extends AbstractTokenParser {
public function parse(Token $token) : Node {
$this->parser
->getStream()
->expect(Token::BLOCK_END_TYPE);
return new FlushNode($token->getLine());
}
public function getTag() : string {
return 'flush';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
AbstractTokenParser::$parser | protected | property | ||
AbstractTokenParser::setParser | public | function | Sets the parser associated with this token parser. | Overrides TokenParserInterface::setParser |
FlushTokenParser::getTag | public | function | Gets the tag name associated with this token parser. | Overrides TokenParserInterface::getTag |
FlushTokenParser::parse | public | function | Parses a token and returns a node. | Overrides TokenParserInterface::parse |