Skip to content

Commit 8489ab4

Browse files
OskarStarkJhonnyL
authored andcommitted
added result yaml and xml from example code
1 parent 270c05b commit 8489ab4

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

components/config/definition.rst

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,47 @@ tree with ``append()``::
411411
This is also useful to help you avoid repeating yourself if you have sections
412412
of the config that are repeated in different places.
413413

414+
The example results in the following:
415+
416+
.. configuration-block::
417+
418+
.. code-block:: yaml
419+
420+
database:
421+
connection:
422+
driver: ~ # Required
423+
host: localhost
424+
username: ~
425+
password: ~
426+
memory: false
427+
parameters: # Required
428+
429+
# Prototype
430+
name:
431+
value: ~ # Required
432+
433+
.. code-block:: xml
434+
435+
<database>
436+
<!-- driver: Required -->
437+
<connection
438+
driver=""
439+
host="localhost"
440+
username=""
441+
password=""
442+
memory="false"
443+
>
444+
445+
<!-- prototype -->
446+
<!-- value: Required -->
447+
<parameters
448+
name="parameters name"
449+
value=""
450+
/>
451+
452+
</connection>
453+
</database>
454+
414455
.. _component-config-normalization:
415456

416457
Normalization

0 commit comments

Comments
 (0)