[ticket/11700] include and define are not valid class names

PHPBB3-11700
This commit is contained in:
Nils Adermann 2013-07-14 15:38:04 -04:00
parent 4311cd65e3
commit 62b33968c2
5 changed files with 8 additions and 8 deletions

View file

@ -54,8 +54,8 @@ class phpbb_template_twig_extension extends Twig_Extension
public function getTokenParsers() public function getTokenParsers()
{ {
return array( return array(
new phpbb_template_twig_tokenparser_define, new phpbb_template_twig_tokenparser_defineparser,
new phpbb_template_twig_tokenparser_include, new phpbb_template_twig_tokenparser_includeparser,
new phpbb_template_twig_tokenparser_includejs, new phpbb_template_twig_tokenparser_includejs,
new phpbb_template_twig_tokenparser_includecss, new phpbb_template_twig_tokenparser_includecss,
new phpbb_template_twig_tokenparser_event, new phpbb_template_twig_tokenparser_event,

View file

@ -16,7 +16,7 @@ if (!defined('IN_PHPBB'))
} }
class phpbb_template_twig_node_define extends Twig_Node class phpbb_template_twig_node_definenode extends Twig_Node
{ {
public function __construct($capture, Twig_NodeInterface $name, Twig_NodeInterface $value, $lineno, $tag = null) public function __construct($capture, Twig_NodeInterface $name, Twig_NodeInterface $value, $lineno, $tag = null)
{ {

View file

@ -16,7 +16,7 @@ if (!defined('IN_PHPBB'))
} }
class phpbb_template_twig_node_include extends Twig_Node_Include class phpbb_template_twig_node_includenode extends Twig_Node_Include
{ {
/** /**
* Compiles the node to PHP. * Compiles the node to PHP.

View file

@ -16,7 +16,7 @@ if (!defined('IN_PHPBB'))
} }
class phpbb_template_twig_tokenparser_define extends Twig_TokenParser class phpbb_template_twig_tokenparser_defineparser extends Twig_TokenParser
{ {
/** /**
* Parses a token and returns a node. * Parses a token and returns a node.
@ -46,7 +46,7 @@ class phpbb_template_twig_tokenparser_define extends Twig_TokenParser
$stream->expect(Twig_Token::BLOCK_END_TYPE); $stream->expect(Twig_Token::BLOCK_END_TYPE);
} }
return new phpbb_template_twig_node_define($capture, $name, $value, $lineno, $this->getTag()); return new phpbb_template_twig_node_definenode($capture, $name, $value, $lineno, $this->getTag());
} }
public function decideBlockEnd(Twig_Token $token) public function decideBlockEnd(Twig_Token $token)

View file

@ -16,7 +16,7 @@ if (!defined('IN_PHPBB'))
} }
class phpbb_template_twig_tokenparser_include extends Twig_TokenParser_Include class phpbb_template_twig_tokenparser_includeparser extends Twig_TokenParser_Include
{ {
/** /**
* Parses a token and returns a node. * Parses a token and returns a node.
@ -31,7 +31,7 @@ class phpbb_template_twig_tokenparser_include extends Twig_TokenParser_Include
list($variables, $only, $ignoreMissing) = $this->parseArguments(); list($variables, $only, $ignoreMissing) = $this->parseArguments();
return new phpbb_template_twig_node_include($expr, $variables, $only, $ignoreMissing, $token->getLine(), $this->getTag()); return new phpbb_template_twig_node_includenode($expr, $variables, $only, $ignoreMissing, $token->getLine(), $this->getTag());
} }
/** /**