Skip to content

Commit

Permalink
Fixed the order of the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz authored and weaverryan committed Jul 7, 2015
1 parent 07628c9 commit fa7ca6d
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions reference/constraints/Url.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,6 @@ This message is shown if the URL is invalid.

.. configuration-block::

.. code-block:: yaml
# src/Acme/BlogBundle/Resources/config/validation.yml
Acme\BlogBundle\Entity\Author:
properties:
bioUrl:
- Url: ~
message: The url "{{ value }}" is not a valid url.
.. code-block:: php-annotations
// src/Acme/BlogBundle/Entity/Author.php
Expand All @@ -111,6 +102,15 @@ This message is shown if the URL is invalid.
protected $bioUrl;
}
.. code-block:: yaml
# src/Acme/BlogBundle/Resources/config/validation.yml
Acme\BlogBundle\Entity\Author:
properties:
bioUrl:
- Url: ~
message: The url "{{ value }}" is not a valid url.
.. code-block:: xml
<!-- src/Acme/BlogBundle/Resources/config/validation.xml -->
Expand Down Expand Up @@ -157,15 +157,6 @@ the ``ftp://`` type URLs to be valid, redefine the ``protocols`` array, listing

.. configuration-block::

.. code-block:: yaml
# src/Acme/BlogBundle/Resources/config/validation.yml
Acme\BlogBundle\Entity\Author:
properties:
bioUrl:
- Url: ~
protocols: [http, https, ftp]
.. code-block:: php-annotations
// src/Acme/BlogBundle/Entity/Author.php
Expand All @@ -183,6 +174,15 @@ the ``ftp://`` type URLs to be valid, redefine the ``protocols`` array, listing
protected $bioUrl;
}
.. code-block:: yaml
# src/Acme/BlogBundle/Resources/config/validation.yml
Acme\BlogBundle\Entity\Author:
properties:
bioUrl:
- Url: ~
protocols: [http, https, ftp]
.. code-block:: xml
<!-- src/Acme/BlogBundle/Resources/config/validation.xml -->
Expand Down

0 comments on commit fa7ca6d

Please sign in to comment.