Skip to content

Commit

Permalink
Twig 2.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
sescandell committed Aug 31, 2017
1 parent af38396 commit bc40834
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Twig/Extension/FormExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Admingenerator\FormBundle\Twig\Extension;

use Symfony\Component\Form\FormRendererInterface;
use Symfony\Component\Form\FormView;
use Symfony\Bridge\Twig\Form\TwigRendererInterface;

/**
* @author Olivier Chauvel <[email protected]>
Expand All @@ -19,7 +19,7 @@ class FormExtension extends \Twig_Extension
*/
public $renderer;

public function __construct(TwigRendererInterface $renderer)
public function __construct(FormRendererInterface $renderer)
{
$this->renderer = $renderer;
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"require": {
"symfony/symfony": ">= 2.2.0",
"twig/twig": "~1.12",
"twig/twig": "~1.26||~2.0",
"twig/extensions": "~1.0"
},
"suggest": {
Expand Down

0 comments on commit bc40834

Please sign in to comment.