Skip to content

Commit

Permalink
added result yaml and xml from example code
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored and JhonnyL committed Sep 5, 2015
1 parent 270c05b commit 8489ab4
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions components/config/definition.rst
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,47 @@ tree with ``append()``::
This is also useful to help you avoid repeating yourself if you have sections
of the config that are repeated in different places.

The example results in the following:

.. configuration-block::

.. code-block:: yaml
database:
connection:
driver: ~ # Required
host: localhost
username: ~
password: ~
memory: false
parameters: # Required
# Prototype
name:
value: ~ # Required
.. code-block:: xml
<database>
<!-- driver: Required -->
<connection
driver=""
host="localhost"
username=""
password=""
memory="false"
>
<!-- prototype -->
<!-- value: Required -->
<parameters
name="parameters name"
value=""
/>
</connection>
</database>
.. _component-config-normalization:

Normalization
Expand Down

0 comments on commit 8489ab4

Please sign in to comment.