Skip to content

Commit 5d7b2a1

Browse files
javiereguiluzweaverryan
authored andcommitted
Fixed some errors and made some simplifications
1 parent f13625b commit 5d7b2a1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

reference/constraints/Url.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ Validates that a value is a valid URL string.
88
+----------------+---------------------------------------------------------------------+
99
| Options | - `message`_ |
1010
| | - `protocols`_ |
11-
<<<<<<< HEAD
12-
=======
13-
| | - `payload`_ |
14-
| | - `checkDNS`_ |
15-
>>>>>>> Added the "payload" option back (was removed by mistake)
1611
+----------------+---------------------------------------------------------------------+
1712
| Class | :class:`Symfony\\Component\\Validator\\Constraints\\Url` |
1813
+----------------+---------------------------------------------------------------------+
@@ -113,7 +108,7 @@ This message is shown if the URL is invalid.
113108
Acme\BlogBundle\Entity\Author:
114109
properties:
115110
bioUrl:
116-
- Url: ~
111+
- Url:
117112
message: The url "{{ value }}" is not a valid url.
118113
119114
.. code-block:: xml
@@ -185,8 +180,7 @@ the ``ftp://`` type URLs to be valid, redefine the ``protocols`` array, listing
185180
Acme\BlogBundle\Entity\Author:
186181
properties:
187182
bioUrl:
188-
- Url: ~
189-
protocols: [http, https, ftp]
183+
- Url: { protocols: [http, https, ftp] }
190184
191185
.. code-block:: xml
192186

0 commit comments

Comments
 (0)