Skip to content

Commit bc40834

Browse files
committed
Twig 2.0 support
1 parent af38396 commit bc40834

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Twig/Extension/FormExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Admingenerator\FormBundle\Twig\Extension;
44

5+
use Symfony\Component\Form\FormRendererInterface;
56
use Symfony\Component\Form\FormView;
6-
use Symfony\Bridge\Twig\Form\TwigRendererInterface;
77

88
/**
99
* @author Olivier Chauvel <[email protected]>
@@ -19,7 +19,7 @@ class FormExtension extends \Twig_Extension
1919
*/
2020
public $renderer;
2121

22-
public function __construct(TwigRendererInterface $renderer)
22+
public function __construct(FormRendererInterface $renderer)
2323
{
2424
$this->renderer = $renderer;
2525
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"require": {
1818
"symfony/symfony": ">= 2.2.0",
19-
"twig/twig": "~1.12",
19+
"twig/twig": "~1.26||~2.0",
2020
"twig/extensions": "~1.0"
2121
},
2222
"suggest": {

0 commit comments

Comments
 (0)