Skip to content

Commit fa24874

Browse files
Reword
1 parent 04fd97b commit fa24874

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

forms.rst

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -317,21 +317,17 @@ valid, but whether or not the ``$task`` object is valid after the form has
317317
applied the submitted data to it. Calling ``$form->isValid()`` is a shortcut
318318
that asks the ``$task`` object whether or not it has valid data.
319319

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 \DateTime
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:
330321

331322
.. code-block:: terminal
332323
333324
$ composer require validator
334325
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 \DateTime
329+
object.
330+
335331
.. configuration-block::
336332

337333
.. code-block:: php-annotations

0 commit comments

Comments
 (0)