Skip to content

Commit 134268e

Browse files
committed
minor #5209 [Reference] Fix order of config blocks (xelaris)
This PR was merged into the 2.6 branch. Discussion ---------- [Reference] Fix order of config blocks | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.6+ | Fixed tickets | Commits ------- 4240b4b [Reference] Fix missing comma in constraint annotation f33b10d [Reference] Fix order of config blocks
2 parents 4eabb47 + 4240b4b commit 134268e

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

Diff for: reference/constraints/Image.rst

+11-12
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,6 @@ following code:
159159

160160
.. configuration-block::
161161

162-
.. code-block:: yaml
163-
164-
# src/Acme/BlogBundle/Resources/config/validation.yml
165-
Acme\BlogBundle\Entity\Author
166-
properties:
167-
headshot:
168-
- Image:
169-
allowLandscape: false
170-
allowPortrait: false
171-
172-
173162
.. code-block:: php-annotations
174163
175164
// src/Acme/BlogBundle/Entity/Author.php
@@ -181,13 +170,23 @@ following code:
181170
{
182171
/**
183172
* @Assert\Image(
184-
* allowLandscape = false
173+
* allowLandscape = false,
185174
* allowPortrait = false
186175
* )
187176
*/
188177
protected $headshot;
189178
}
190179
180+
.. code-block:: yaml
181+
182+
# src/Acme/BlogBundle/Resources/config/validation.yml
183+
Acme\BlogBundle\Entity\Author
184+
properties:
185+
headshot:
186+
- Image:
187+
allowLandscape: false
188+
allowPortrait: false
189+
191190
.. code-block:: xml
192191
193192
<!-- src/Acme/BlogBundle/Resources/config/validation.xml -->

0 commit comments

Comments
 (0)