Skip to content

Commit 13033e3

Browse files
committed
minor #10324 Missing root node in yaml example (l-vo)
This PR was merged into the 2.8 branch. Discussion ---------- Missing root node in yaml example The `database` root node which is present in `getConfigTreeBuilder` is not visible in the yaml chunk above. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 9d9199a Missing root node in yaml example
2 parents a327949 + 9d9199a commit 13033e3

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

components/config/definition.rst

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@ be a boolean value"):
1818

1919
.. code-block:: yaml
2020
21-
auto_connect: true
22-
default_connection: mysql
23-
connections:
24-
mysql:
25-
host: localhost
26-
driver: mysql
27-
username: user
28-
password: pass
29-
sqlite:
30-
host: localhost
31-
driver: sqlite
32-
memory: true
33-
username: user
34-
password: pass
21+
database:
22+
auto_connect: true
23+
default_connection: mysql
24+
connections:
25+
mysql:
26+
host: localhost
27+
driver: mysql
28+
username: user
29+
password: pass
30+
sqlite:
31+
host: localhost
32+
driver: sqlite
33+
memory: true
34+
username: user
35+
password: pass
3536
3637
When loading multiple configuration files, it should be possible to merge
3738
and overwrite some values. Other values should not be merged and stay as

0 commit comments

Comments
 (0)