Skip to content

Commit

Permalink
Symfony ^4.0 support (#26)
Browse files Browse the repository at this point in the history
* Symfony ^4.0 support

* Fix deprecation

* fix bc break
  • Loading branch information
Selion05 authored and norberttech committed Mar 5, 2019
1 parent 62d7526 commit 028d266
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class Configuration implements ConfigurationInterface
{
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('norzechowicz_ace_editor');
$treeBuilder = new TreeBuilder('norzechowicz_ace_editor');
$rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('norzechowicz_ace_editor');

$rootNode
->children()
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"require": {
"php": ">=5.6",
"twig/twig": "^1.23|^2.0",
"symfony/framework-bundle": "^3.0",
"symfony/form": "^3.0",
"symfony/twig-bridge": "^3.0",
"symfony/asset": "^3.0",
"symfony/expression-language": "^3.0"
"symfony/framework-bundle": "^3.0|^4.0",
"symfony/form": "^3.0|^4.0",
"symfony/twig-bridge": "^3.0|^4.0",
"symfony/asset": "^3.0|^4.0",
"symfony/expression-language": "^3.0|^4.0"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
Expand Down

0 comments on commit 028d266

Please sign in to comment.