File: phpbb/template/twig/tokenparser/event.php
Unmodified
Added
Modified
Removed
Line 13 | Line 13 |
---|
namespace phpbb\template\twig\tokenparser;
|
namespace phpbb\template\twig\tokenparser;
|
class event extends \Twig_TokenParser
| class event extends \Twig\TokenParser\AbstractTokenParser
|
{ /** @var \phpbb\template\twig\environment */ protected $environment;
| { /** @var \phpbb\template\twig\environment */ protected $environment;
|
Line 31 | Line 31 |
---|
/** * Parses a token and returns a node. *
|
/** * Parses a token and returns a node. *
|
* @param \Twig_Token $token A Twig_Token instance
| * @param \Twig\Token $token A Twig\Token instance
|
*
|
*
|
* @return \Twig_Node A Twig_Node instance
| * @return \Twig\Node\Node A Twig\Node instance
|
*/
|
*/
|
public function parse(\Twig_Token $token)
| public function parse(\Twig\Token $token)
|
{ $expr = $this->parser->getExpressionParser()->parseExpression();
$stream = $this->parser->getStream();
|
{ $expr = $this->parser->getExpressionParser()->parseExpression();
$stream = $this->parser->getStream();
|
$stream->expect(\Twig_Token::BLOCK_END_TYPE);
| $stream->expect(\Twig\Token::BLOCK_END_TYPE);
|
return new \phpbb\template\twig\node\event($expr, $this->environment, $token->getLine(), $this->getTag()); }
| return new \phpbb\template\twig\node\event($expr, $this->environment, $token->getLine(), $this->getTag()); }
|