@@ -59,7 +59,7 @@ If your valid choice list is simple, you can pass them in directly via the
5959
6060 .. code-block :: yaml
6161
62- # src/Resources/ config/validation.yaml
62+ # config/validator /validation.yaml
6363 App\Entity\Author :
6464 properties :
6565 city :
@@ -71,7 +71,7 @@ If your valid choice list is simple, you can pass them in directly via the
7171
7272 .. code-block :: xml
7373
74- <!-- src/Resources/ config/validation.xml -->
74+ <!-- config/validator /validation.xml -->
7575 <?xml version =" 1.0" encoding =" UTF-8" ?>
7676 <constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
7777 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -166,15 +166,15 @@ constraint.
166166
167167 .. code-block :: yaml
168168
169- # src/Resources/ config/validation.yaml
169+ # config/validator /validation.yaml
170170 App\Entity\Author :
171171 properties :
172172 genre :
173173 - Choice : { callback: getGenres }
174174
175175 .. code-block :: xml
176176
177- <!-- src/Resources/ config/validation.xml -->
177+ <!-- config/validator /validation.xml -->
178178 <?xml version =" 1.0" encoding =" UTF-8" ?>
179179 <constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
180180 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -231,15 +231,15 @@ you can pass the class name and the method as an array.
231231
232232 .. code-block :: yaml
233233
234- # src/Resources/ config/validation.yaml
234+ # config/validator /validation.yaml
235235 App\Entity\Author :
236236 properties :
237237 genre :
238238 - Choice : { callback: [Util, getGenres] }
239239
240240 .. code-block :: xml
241241
242- <!-- src/Resources/ config/validation.xml -->
242+ <!-- config/validator /validation.xml -->
243243 <?xml version =" 1.0" encoding =" UTF-8" ?>
244244 <constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
245245 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
0 commit comments