8000 minor #4208 Added a note about the lacking features of Yaml Component… · symfony/symfony-docs@6db13ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 6db13ac

Browse files
committed
minor #4208 Added a note about the lacking features of Yaml Component (javiereguiluz)
This PR was merged into the 2.3 branch. Discussion ---------- Added a note about the lacking features of Yaml Component | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | 2.3+ | Fixed tickets | - In `symfony/symfony` repository there are a lot of issues reporting errors of the Yaml Component. These aren't errors but lacking features of the Yaml Component. This PR tries to clearly state that Yaml Component lacks lots of features on purpose and provides a simple list of the most notable missing features. Commits ------- fe45194 Added a note about the lacking features of Yaml Component
2 parents f8c6201 + fe45194 commit 6db13ac

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

components/yaml/introduction.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ standard for all programming languages. YAML is a great format for your
1818
configuration files. YAML files are as expressive as XML files and as readable
1919
as INI files.
2020

21-
The Symfony2 Yaml component implements the YAML 1.2 version of the
22-
specification.
21+
The Symfony2 Yaml Component implements a selected subset of features defined in
22+
the `YAML 1.2 version specification`_.
2323

2424
.. tip::
2525

@@ -40,9 +40,10 @@ Why?
4040
Fast
4141
~~~~
4242

43-
One of the goals of the Symfony Yaml component is to find the right balance
44-
between speed and features. It supports just the needed features to handle
45-
configuration files.
43+
One of the goals of Symfony Yaml is to find the right balance between speed and
44+
features. It supports just the needed features to handle configuration files.
45+
Notable lacking features are: document directives, multi-line quoted messages,
46+
compact block collections and multi-document files.
4647

4748
Real Parser
4849
~~~~~~~~~~~
@@ -164,7 +165,7 @@ array to its YAML representation:
164165
165166
.. note::
166167

167-
Of course, the Symfony2 YAML dumper is not able to dump resources. Also,
168+
Of course, the Symfony2 Yaml dumper is not able to dump resources. Also,
168169
even if the dumper is able to dump PHP objects, it is considered to be a
169170
not supported feature.
170171

@@ -214,3 +215,4 @@ representation to the inline one:
214215
215216
.. _YAML: http://yaml.org/
216217
.. _Packagist: https://packagist.org/packages/symfony/yaml
218+
.. _`YAML 1.2 version specification`: http://yaml.org/spec/1.2/spec.html

0 commit comments

Comments
 (0)
0