Skip to content

Commit 04fd97b

Browse files
authored
update forms.rst
add validator
1 parent 3051442 commit 04fd97b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

forms.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,16 @@ see this in action, add validation constraints so that the ``task`` field cannot
322322
be empty and the ``dueDate`` field cannot be empty and must be a valid \DateTime
323323
object.
324324

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:
330+
331+
.. code-block:: terminal
332+
333+
$ composer require validator
334+
325335
.. configuration-block::
326336

327337
.. code-block:: php-annotations

0 commit comments

Comments
 (0)