From 0d24340dfc1795f257419997e343fa3688b97c6e 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 1/2] Update definition.rst --- components/config/definition.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/config/definition.rst b/components/config/definition.rst index dfe9f8e166a..5ffbc5a9314 100644 --- a/components/config/definition.rst +++ b/components/config/definition.rst @@ -827,7 +827,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 @@ -838,6 +839,8 @@ separator:: $treeBuilder->setPathSeparator('/'); $node = $treeBuilder->buildTree(); $children = $node->getChildren(); + $childChildren = $children['connection']->getChildren(); + $path = $childChildren['driver']->getPath(); $path = $children['driver']->getPath(); // $path = 'database/connection/driver' From faf9ea1536fd9884a291502777edff83809544f7 Mon Sep 17 00:00:00 2001 From: helmi dridi <43951764+helmidridi@users.noreply.github.com> Date: Wed, 13 Oct 2021 13:51:52 +0100 Subject: [PATCH 2/2] Update definition.rst Select second Child --- components/config/definition.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/components/config/definition.rst b/components/config/definition.rst index 5ffbc5a9314..fd60b873541 100644 --- a/components/config/definition.rst +++ b/components/config/definition.rst @@ -841,7 +841,6 @@ separator:: $children = $node->getChildren(); $childChildren = $children['connection']->getChildren(); $path = $childChildren['driver']->getPath(); - $path = $children['driver']->getPath(); // $path = 'database/connection/driver' Processing Configuration Values