File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -820,7 +820,8 @@ character (``.``)::
820
820
821
821
$node = $treeBuilder->buildTree();
822
822
$children = $node->getChildren();
823
- $path = $children['driver']->getPath();
823
+ $childChildren = $children['connection']->getChildren();
824
+ $path = $childChildren['driver']->getPath();
824
825
// $path = 'database.connection.driver'
825
826
826
827
Use the ``setPathSeparator() `` method on the config builder to change the path
@@ -831,7 +832,8 @@ separator::
831
832
$treeBuilder->setPathSeparator('/');
832
833
$node = $treeBuilder->buildTree();
833
834
$children = $node->getChildren();
834
- $path = $children['driver']->getPath();
835
+ $childChildren = $children['connection']->getChildren();
836
+ $path = $childChildren['driver']->getPath();
835
837
// $path = 'database/connection/driver'
836
838
837
839
Processing Configuration Values
You can’t perform that action at this time.
0 commit comments