Skip to content

Commit 193d41b

Browse files
committed
[reference][constraints] Changing code-block order to be consistent with other sections
1 parent e525544 commit 193d41b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

reference/constraints/Callback.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,6 @@ Setup
4040
- Callback:
4141
methods: [isAuthorValid]
4242
43-
.. code-block:: xml
44-
45-
<!-- src/Acme/BlogBundle/Resources/config/validation.xml -->
46-
<class name="Acme\BlogBundle\Entity\Author">
47-
<constraint name="Callback">
48-
<option name="methods">
49-
<value>isAuthorValid</value>
50-
</option>
51-
</constraint>
52-
</class>
53-
5443
.. code-block:: php-annotations
5544
5645
// src/Acme/BlogBundle/Entity/Author.php
@@ -63,6 +52,17 @@ Setup
6352
{
6453
}
6554
55+
.. code-block:: xml
56+
57+
<!-- src/Acme/BlogBundle/Resources/config/validation.xml -->
58+
<class name="Acme\BlogBundle\Entity\Author">
59+
<constraint name="Callback">
60+
<option name="methods">
61+
<value>isAuthorValid</value>
62+
</option>
63+
</constraint>
64+
</class>
65+
6666
The Callback Method
6767
-------------------
6868

0 commit comments

Comments
 (0)