Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Update bundle configuration for Symfony 4.2 change
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker authored Nov 30, 2018
1 parent 69604d0 commit 5a41d2d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('white_october_pagerfanta', 'array');
$treeBuilder = new TreeBuilder('white_october_pagerfanta', 'array');

if (method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->getRootNode();
} else {
// BC layer for symfony/config 4.1 and older
$rootNode = $treeBuilder->root('white_october_pagerfanta', 'array');
}

$rootNode
->children()
Expand Down

0 comments on commit 5a41d2d

Please sign in to comment.