Skip to content
This repository was archived by the owner on Aug 14, 2019. It is now read-only.

Commit 6276c60

Browse files
authored
Allow using twig/twig ~2.0 (#24)
* Add twig/twig ~2.0 as compatible version * Update twig/twig 1.x version, remove using of deprecated FormExtension::getName
1 parent 72aa24a commit 6276c60

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Twig/Extension/FormExtension.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,4 @@ public function renderJavascript(FormView $view, $prototype = false)
5656

5757
return $this->renderer->searchAndRenderBlock($view, $block);
5858
}
59-
60-
/**
61-
* {@inheritdoc}
62-
*/
63-
public function getName()
64-
{
65-
return 'genemu.twig.extension.form';
66-
}
6759
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"php": "^5.5.9 | ^7.0",
2727
"symfony/framework-bundle": "^2.8 | ^3.0 | ^4.0",
2828
"symfony/form": "^2.8 | ^3.0 | ^4.0",
29-
"twig/twig": "~1.14"
29+
"twig/twig": "^1.26 | ~2.0"
3030
},
3131
"require-dev": {
3232
"phpunit/phpunit": "^4.8.35 | ^5.7.11 | ^6.5"

0 commit comments

Comments
 (0)