File tree 1 file changed +0
-28
lines changed
1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -109,34 +109,6 @@ Its value is a combination of one or more of the :ref:`flags defined by the Yaml
109
109
private string $customConfiguration;
110
110
}
111
111
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
-
140
112
.. code-block :: php
141
113
142
114
// src/Entity/Report.php
You can’t perform that action at this time.
0 commit comments