Skip to content

Commit

Permalink
Remove Symfony <4 compatibility layer
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-93 authored and bobvandevijver committed Jan 16, 2024
1 parent 06cfe88 commit 804fa3e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,7 @@ public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('bobv_entity_history');

if (method_exists($treeBuilder, 'getRootNode')) {
$rootNode = $treeBuilder->getRootNode();
} else {
// for symfony/config 4.1 and older
$rootNode = $treeBuilder->root('bobv_entity_history');
}
$rootNode
$treeBuilder->getRootNode()
->children()
->arrayNode('entities')
->prototype('scalar')->end()
Expand Down

0 comments on commit 804fa3e

Please sign in to comment.