Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b583427

Browse filesBrowse files
helmis123wouterj
authored andcommitted
Update definition.rst
1 parent c0dddd6 commit b583427
Copy full SHA for b583427

File tree

Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-2
lines changed

‎components/config/definition.rst

Copy file name to clipboardExpand all lines: components/config/definition.rst
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,8 @@ character (``.``)::
820820

821821
$node = $treeBuilder->buildTree();
822822
$children = $node->getChildren();
823-
$path = $children['driver']->getPath();
823+
$childChildren = $children['connection']->getChildren();
824+
$path = $childChildren['driver']->getPath();
824825
// $path = 'database.connection.driver'
825826

826827
Use the ``setPathSeparator()`` method on the config builder to change the path
@@ -831,7 +832,8 @@ separator::
831832
$treeBuilder->setPathSeparator('/');
832833
$node = $treeBuilder->buildTree();
833834
$children = $node->getChildren();
834-
$path = $children['driver']->getPath();
835+
$childChildren = $children['connection']->getChildren();
836+
$path = $childChildren['driver']->getPath();
835837
// $path = 'database/connection/driver'
836838

837839
Processing Configuration Values

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.