Skip to content

Commit 2d75b9c

Browse files
Favor TreeBuilder::getRootNode
So the bundle doesn't produce notices about `root` being deprecated. Also changed the call to `root` so it passes `treeType` as it does a few lines up. Seems like calling `root` replaces the root node so the AWS_MERGE_CONFIG thing might have been subtle broken in older symfony versions?
1 parent 1b040b3 commit 2d75b9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ public function getConfigTreeBuilder()
3131
return $treeBuilder;
3232
}
3333

34-
if (method_exists($treeBuilder, 'root')) {
35-
$rootNode = $treeBuilder->root('aws');
36-
} else {
34+
if (method_exists($treeBuilder, 'getRootNode')) {
3735
$rootNode = $treeBuilder->getRootNode();
36+
} else {
37+
$rootNode = $treeBuilder->root('aws', $treeType);
3838
}
3939

4040
// Define TreeBuilder to allow config validation and merging

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy