Skip to content

Commit

Permalink
Merge ac7b17e into 13ee5bf
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Mar 4, 2019
2 parents 13ee5bf + ac7b17e commit d17721a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
25 changes: 13 additions & 12 deletions .travis.yml
Expand Up @@ -12,6 +12,7 @@ php:
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- nightly

sudo: false
Expand All @@ -29,28 +30,28 @@ env:
matrix:
fast_finish: true
include:
- php: '5.4'
- php: '5.6'
env: COMPOSER_FLAGS="--prefer-lowest"
- php: '7.0'
env: SYMFONY=2.3.*
- php: '7.2'
- php: '7.0'
env: SYMFONY=2.7.*
- php: '7.2'
- php: '7.0'
env: SYMFONY=2.8.*
- php: '7.2'
env: SYMFONY=3.3.*
- php: '7.2'
- php: '7.3'
env: SYMFONY=3.4.*
- php: '7.2'
env: SYMFONY=4.0.*
- php: '7.2'
env: SYMFONY='dev-master as 4.1.x-dev'
- php: '7.2'
- php: '7.3'
env: SYMFONY=4.1.*
- php: '7.3'
env: SYMFONY=4.2.*
- php: '7.3'
env: SYMFONY='dev-master as 4.3.x-dev'
- php: '7.3'
env: SYMFONY_DEPRECATIONS_HELPER=0
allow_failures:
- php: nightly
- env: SYMFONY_DEPRECATIONS_HELPER=0
- env: SYMFONY='dev-master as 4.1.x-dev'
- env: SYMFONY='dev-master as 4.3.x-dev'

before_install:
- echo memory_limit = -1 >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini;
Expand Down
10 changes: 8 additions & 2 deletions DependencyInjection/Configuration.php
Expand Up @@ -25,8 +25,14 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('a2lix_translation_form');
$treeBuilder = new TreeBuilder('a2lix_translation_form');

// Keep compatibility with symfony/config < 4.2
if (!method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->root('a2lix_translation_form');
} else {
$rootNode = $treeBuilder->getRootNode();
}

$rootNode
->children()
Expand Down

0 comments on commit d17721a

Please sign in to comment.