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

Commit

Permalink
Merge pull request #208 from mbabker/patch-1
Browse files Browse the repository at this point in the history
Update bundle configuration for Symfony 4.2 change
  • Loading branch information
Sam Partington committed Dec 5, 2018
2 parents 69604d0 + 5a41d2d commit 3a2f39f
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 3a2f39f

Please sign in to comment.