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

Commit

Permalink
Allow using twig/twig ~2.0 (#24)
Browse files Browse the repository at this point in the history
* Add twig/twig ~2.0 as compatible version
* Update twig/twig 1.x version, remove using of deprecated FormExtension::getName
  • Loading branch information
aivus committed Jan 14, 2018
1 parent 72aa24a commit 6276c60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions Twig/Extension/FormExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,4 @@ public function renderJavascript(FormView $view, $prototype = false)

return $this->renderer->searchAndRenderBlock($view, $block);
}

/**
* {@inheritdoc}
*/
public function getName()
{
return 'genemu.twig.extension.form';
}
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"php": "^5.5.9 | ^7.0",
"symfony/framework-bundle": "^2.8 | ^3.0 | ^4.0",
"symfony/form": "^2.8 | ^3.0 | ^4.0",
"twig/twig": "~1.14"
"twig/twig": "^1.26 | ~2.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35 | ^5.7.11 | ^6.5"
Expand Down

0 comments on commit 6276c60

Please sign in to comment.