Permalink
Browse files

[TwigBundle] removed deprecated syntax

  • Loading branch information...
1 parent 45bd413 commit 4f4a5d16436fcd2aa420d5a14d7b39aff2dfea5e @fabpot fabpot committed Mar 1, 2013
@@ -54,29 +54,6 @@ public function getTestsForRender()
'render'
)
),
- // deprecated in 2.2
- array(
- '{% render "foo" with {foo: 2} %}',
- new RenderNode(
- new \Twig_Node_Expression_Constant('foo', 1),
- new \Twig_Node_Expression_Array(array(), 1),
- 1,
- 'render'
- )
- ),
- // deprecated in 2.2
- array(
- '{% render "foo" with {foo: 2}, {foo: 1} %}',
- new RenderNode(
- new \Twig_Node_Expression_Constant('foo', 1),
- new \Twig_Node_Expression_Array(array(
- new \Twig_Node_Expression_Constant('foo', 1),
- new \Twig_Node_Expression_Constant('1', 1),
- ), 1),
- 1,
- 'render'
- )
- ),
);
}
}
@@ -31,15 +31,6 @@ public function parse(\Twig_Token $token)
{
$expr = $this->parser->getExpressionParser()->parseExpression();
- // attributes (not used anymore, kept for BC reasons)
- // @deprecated in 2.2 and will be removed in 2.3
- if ($this->parser->getStream()->test(\Twig_Token::NAME_TYPE, 'with')) {
- $this->parser->getStream()->next();
- $attributes = $this->parser->getExpressionParser()->parseExpression();
- } else {
- $attributes = new \Twig_Node_Expression_Array(array(), $token->getLine());
- }
-
// options
if ($this->parser->getStream()->test(\Twig_Token::PUNCTUATION_TYPE, ',')) {
$this->parser->getStream()->next();

0 comments on commit 4f4a5d1

Please sign in to comment.