Skip to content

Commit 9688552

Browse files
committed
Remove the flags example in YAML and XML because it doesn't work
1 parent ffc47b7 commit 9688552

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

reference/constraints/Yaml.rst

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -109,34 +109,6 @@ Its value is a combination of one or more of the :ref:`flags defined by the Yaml
109109
private string $customConfiguration;
110110
}
111111
112-
.. code-block:: yaml
113-
114-
# config/validator/validation.yaml
115-
App\Entity\Report:
116-
properties:
117-
customConfiguration:
118-
- Yaml:
119-
message: Your configuration doesn't have valid YAML syntax.
120-
flags: YamlParser::PARSE_CONSTANT | YamlParser::PARSE_CUSTOM_TAGS | Yaml::PARSE_DATETIME
121-
122-
.. code-block:: xml
123-
124-
<!-- config/validator/validation.xml -->
125-
<?xml version="1.0" encoding="UTF-8" ?>
126-
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
127-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
128-
xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping https://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd">
129-
130-
<class name="App\Entity\Report">
131-
<property name="customConfiguration">
132-
<constraint name="Yaml">
133-
<option name="message">Your configuration doesn't have valid YAML syntax.</option>
134-
<option name="flags">Yaml::PARSE_CONSTANT | Yaml::PARSE_CUSTOM_TAGS | Yaml::PARSE_DATETIME</option>
135-
</constraint>
136-
</property>
137-
</class>
138-
</constraint-mapping>
139-
140112
.. code-block:: php
141113
142114
// src/Entity/Report.php

0 commit comments

Comments
 (0)