@@ -59,15 +59,15 @@ following:
59
59
60
60
.. code-block :: yaml
61
61
62
- # src/Resources/ config/validation.yml
62
+ # config/validator/ validation.yaml
63
63
App\Entity\Author :
64
64
properties :
65
65
name :
66
66
- NotBlank : ~
67
67
68
68
.. code-block :: xml
69
69
70
- <!-- src/Resources/ config/validation.xml -->
70
+ <!-- config/validator /validation.xml -->
71
71
<?xml version =" 1.0" encoding =" UTF-8" ?>
72
72
<constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
73
73
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -214,13 +214,13 @@ file:
214
214
215
215
.. code-block :: yaml
216
216
217
- # app/ config/config.yml
217
+ # config/packages/framework.yaml
218
218
framework :
219
219
validation : { enabled: true }
220
220
221
221
.. code-block :: xml
222
222
223
- <!-- app/ config/config .xml -->
223
+ <!-- config/packages/framework .xml -->
224
224
<?xml version =" 1.0" encoding =" UTF-8" ?>
225
225
<container xmlns =" http://symfony.com/schema/dic/services"
226
226
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -236,7 +236,7 @@ file:
236
236
237
237
.. code-block :: php
238
238
239
- // app/ config/config .php
239
+ // config/packages/framework .php
240
240
$container->loadFromExtension('framework', array(
241
241
'validation' => array(
242
242
'enabled' => true,
@@ -250,13 +250,13 @@ previous configuration by the following:
250
250
251
251
.. code-block :: yaml
252
252
253
- # app/ config/config .yml
253
+ # config/packages/framework .yml
254
254
framework :
255
255
validation : { enable_annotations: true }
256
256
257
257
.. code-block :: xml
258
258
259
- <!-- app/ config/config .xml -->
259
+ <!-- config/packages/framework .xml -->
260
260
<?xml version =" 1.0" encoding =" UTF-8" ?>
261
261
<container xmlns =" http://symfony.com/schema/dic/services"
262
262
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -272,7 +272,7 @@ previous configuration by the following:
272
272
273
273
.. code-block :: php
274
274
275
- // app/ config/config .php
275
+ // config/packages/framework .php
276
276
$container->loadFromExtension('framework', array(
277
277
'validation' => array(
278
278
'enable_annotations' => true,
@@ -346,7 +346,7 @@ literature genre mostly associated with the author, which can be set to either
346
346
347
347
.. code-block :: yaml
348
348
349
- # src/Resources/ config/validation.yml
349
+ # config/validator/ validation.yaml
350
350
App\Entity\Author :
351
351
properties :
352
352
genre :
@@ -355,7 +355,7 @@ literature genre mostly associated with the author, which can be set to either
355
355
356
356
.. code-block :: xml
357
357
358
- <!-- src/Resources/ config/validation.xml -->
358
+ <!-- config/validator /validation.xml -->
359
359
<?xml version =" 1.0" encoding =" UTF-8" ?>
360
360
<constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
361
361
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -430,7 +430,7 @@ options can be specified in this way.
430
430
431
431
.. code-block :: yaml
432
432
433
- # src/Resources/ config/validation.yml
433
+ # config/validator /validation.yml
434
434
App\Entity\Author :
435
435
properties :
436
436
genre :
@@ -439,7 +439,7 @@ options can be specified in this way.
439
439
440
440
.. code-block :: xml
441
441
442
- <!-- src/Resources/ config/validation.xml -->
442
+ <!-- config/validator /validation.xml -->
443
443
<?xml version =" 1.0" encoding =" UTF-8" ?>
444
444
<constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
445
445
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -559,7 +559,7 @@ class to have at least 3 characters.
559
559
560
560
.. code-block :: yaml
561
561
562
- # src/Resources/ config/validation.yml
562
+ # config/validator/ validation.yaml
563
563
App\Entity\Author :
564
564
properties :
565
565
firstName :
@@ -569,7 +569,7 @@ class to have at least 3 characters.
569
569
570
570
.. code-block :: xml
571
571
572
- <!-- src/Resources/ config/validation.xml -->
572
+ <!-- config/validator /validation.xml -->
573
573
<?xml version =" 1.0" encoding =" UTF-8" ?>
574
574
<constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
575
575
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -647,15 +647,15 @@ this method must return ``true``:
647
647
648
648
.. code-block :: yaml
649
649
650
- # src/Resources/ config/validation.yml
650
+ # config/validator/ validation.yaml
651
651
App\Entity\Author :
652
652
getters :
653
653
passwordLegal :
654
654
- ' IsTrue ' : { message: 'The password cannot match your first name' }
655
655
656
656
.. code-block :: xml
657
657
658
- <!-- src/Resources/ config/validation.xml -->
658
+ <!-- config/validator /validation.xml -->
659
659
<?xml version =" 1.0" encoding =" UTF-8" ?>
660
660
<constraint-mapping xmlns =" http://symfony.com/schema/dic/constraint-mapping"
661
661
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
0 commit comments