From b583427d599e213ff5bc2af0fec5eaf8727615ae Mon Sep 17 00:00:00 2001 From: helmi dridi <43951764+helmidridi@users.noreply.github.com> Date: Wed, 13 Oct 2021 13:41:03 +0100 Subject: [PATCH] Update definition.rst --- components/config/definition.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/config/definition.rst b/components/config/definition.rst index 4030098a66b..2864bddb570 100644 --- a/components/config/definition.rst +++ b/components/config/definition.rst @@ -820,7 +820,8 @@ character (``.``):: $node = $treeBuilder->buildTree(); $children = $node->getChildren(); - $path = $children['driver']->getPath(); + $childChildren = $children['connection']->getChildren(); + $path = $childChildren['driver']->getPath(); // $path = 'database.connection.driver' Use the ``setPathSeparator()`` method on the config builder to change the path @@ -831,7 +832,8 @@ separator:: $treeBuilder->setPathSeparator('/'); $node = $treeBuilder->buildTree(); $children = $node->getChildren(); - $path = $children['driver']->getPath(); + $childChildren = $children['connection']->getChildren(); + $path = $childChildren['driver']->getPath(); // $path = 'database/connection/driver' Processing Configuration Values