Skip to content

Commit

Permalink
Fixed some errors and made some simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz authored and weaverryan committed Jul 7, 2015
1 parent f13625b commit 5d7b2a1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions reference/constraints/Url.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ Validates that a value is a valid URL string.
+----------------+---------------------------------------------------------------------+
| Options | - `message`_ |
| | - `protocols`_ |
<<<<<<< HEAD
=======
| | - `payload`_ |
| | - `checkDNS`_ |
>>>>>>> Added the "payload" option back (was removed by mistake)
+----------------+---------------------------------------------------------------------+
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Url` |
+----------------+---------------------------------------------------------------------+
Expand Down Expand Up @@ -113,7 +108,7 @@ This message is shown if the URL is invalid.
Acme\BlogBundle\Entity\Author:
properties:
bioUrl:
- Url: ~
- Url:
message: The url "{{ value }}" is not a valid url.
.. code-block:: xml
Expand Down Expand Up @@ -185,8 +180,7 @@ the ``ftp://`` type URLs to be valid, redefine the ``protocols`` array, listing
Acme\BlogBundle\Entity\Author:
properties:
bioUrl:
- Url: ~
protocols: [http, https, ftp]
- Url: { protocols: [http, https, ftp] }
.. code-block:: xml
Expand Down

0 comments on commit 5d7b2a1

Please sign in to comment.