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
317317applied the submitted data to it. Calling ``$form->isValid() `` is a shortcut
318318that 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 \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:
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 \D ateTime
329+ object.
330+
335331.. configuration-block ::
336332
337333 .. code-block :: php-annotations
You can’t perform that action at this time.
0 commit comments