@@ -85,15 +85,6 @@ This message is shown if the URL is invalid.
8585
8686.. configuration-block ::
8787
88- .. code-block :: yaml
89-
90- # src/Acme/BlogBundle/Resources/config/validation.yml
91- Acme\BlogBundle\Entity\Author :
92- properties :
93- bioUrl :
94- - Url : ~
95- message : The url "{{ value }}" is not a valid url.
96-
9788 .. code-block :: php-annotations
9889
9990 // src/Acme/BlogBundle/Entity/Author.php
@@ -111,6 +102,15 @@ This message is shown if the URL is invalid.
111102 protected $bioUrl;
112103 }
113104
105+ .. code-block :: yaml
106+
107+ # src/Acme/BlogBundle/Resources/config/validation.yml
108+ Acme\BlogBundle\Entity\Author :
109+ properties :
110+ bioUrl :
111+ - Url : ~
112+ message : The url "{{ value }}" is not a valid url.
113+
114114 .. code-block :: xml
115115
116116 <!-- src/Acme/BlogBundle/Resources/config/validation.xml -->
@@ -157,15 +157,6 @@ the ``ftp://`` type URLs to be valid, redefine the ``protocols`` array, listing
157157
158158.. configuration-block ::
159159
160- .. code-block :: yaml
161-
162- # src/Acme/BlogBundle/Resources/config/validation.yml
163- Acme\BlogBundle\Entity\Author :
164- properties :
165- bioUrl :
166- - Url : ~
167- protocols : [http, https, ftp]
168-
169160 .. code-block :: php-annotations
170161
171162 // src/Acme/BlogBundle/Entity/Author.php
@@ -183,6 +174,15 @@ the ``ftp://`` type URLs to be valid, redefine the ``protocols`` array, listing
183174 protected $bioUrl;
184175 }
185176
177+ .. code-block :: yaml
178+
179+ # src/Acme/BlogBundle/Resources/config/validation.yml
180+ Acme\BlogBundle\Entity\Author :
181+ properties :
182+ bioUrl :
183+ - Url : ~
184+ protocols : [http, https, ftp]
185+
186186 .. code-block :: xml
187187
188188 <!-- src/Acme/BlogBundle/Resources/config/validation.xml -->
0 commit comments