Skip to content

Commit

Permalink
Use correct TreeBuilder root node method for symfony/config version (#28
Browse files Browse the repository at this point in the history
)
  • Loading branch information
TomAdam committed Sep 29, 2020
1 parent 7d0bf12 commit 3915cf8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ class Configuration implements ConfigurationInterface
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder('padam87_rasterize');
$rootNode = method_exists($treeBuilder, 'getRootNode')
? $treeBuilder->getRootNode()
: $treeBuilder->root('padam87_rasterize');

$treeBuilder->getRootNode()
$rootNode
->children()
->arrayNode('script')
->addDefaultsIfNotSet()
Expand Down

0 comments on commit 3915cf8

Please sign in to comment.