File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -317,21 +317,17 @@ valid, but whether or not the ``$task`` object is valid after the form has
317
317
applied the submitted data to it. Calling ``$form->isValid() `` is a shortcut
318
318
that asks the ``$task `` object whether or not it has valid data.
319
319
320
- Validation is done by adding a set of rules (called constraints) to a class. To
321
- see this in action, add validation constraints so that the ``task `` field cannot
322
- be empty and the ``dueDate `` field cannot be empty and must be a valid \D ateTime
323
- object.
324
-
325
- Installation
326
- ------------
327
-
328
- In applications using :doc: `Symfony Flex </setup/flex >`, run this command to
329
- install the validator feature before using it:
320
+ Before using validation, add support for it in your application:
330
321
331
322
.. code-block :: terminal
332
323
333
324
$ composer require validator
334
325
326
+ Validation is done by adding a set of rules (called constraints) to a class. To
327
+ see this in action, add validation constraints so that the ``task `` field cannot
328
+ be empty and the ``dueDate `` field cannot be empty and must be a valid \D ateTime
329
+ object.
330
+
335
331
.. configuration-block ::
336
332
337
333
.. code-block :: php-annotations
You can’t perform that action at this time.
0 commit comments