8000 Merge branch '3.4' into 4.1 · symfony/symfony-docs@60c4d98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 60c4d98

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: Added documentation for message parameters added between 2.8 and 3.4
2 parents e9346e1 + b519265 commit 60c4d98

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

reference/constraints/Image.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ If the system is unable to determine the size of the image, this error will
347347
be displayed. This will only occur when at least one of the size constraint
348348
options has been set.
349349

350+
This message has no parameters.
351+
350352
maxWidthMessage
351353
~~~~~~~~~~~~~~~
352354

@@ -427,6 +429,20 @@ Maximum amount expected is {{ max_pixels }} pixels.``
427429

428430
The error message if the amount of pixels of the image exceeds `maxPixels`_.
429431

432+
You can use the following parameters in this message:
433+
434+
+----------------------+---------------------------------------+
435+
| Parameter | Description |
436+
+======================+=======================================+
437+
| ``{{ pixels }}`` | The current amount of pixels |
438+
+----------------------+---------------------------------------+
439+
| ``{{ max_pixels }}`` | The maximum allowed amount of pixels |
440+
+----------------------+---------------------------------------+
441+
| ``{{ height }}`` | The current image height |
442+
+----------------------+---------------------------------------+
443+
| ``{{ width }}`` | The current image width |
444+
+----------------------+---------------------------------------+
445+
430446
minPixelsMessage
431447
~~~~~~~~~~~~~~~~
432448

@@ -435,6 +451,20 @@ Minimum amount expected is {{ min_pixels }} pixels.``
435451

436452
The error message if the amount of pixels of the image is less than `minPixels`_.
437453

454+
You can use the following parameters in this message:
455+
456+
+----------------------+---------------------------------------+
457+
| Parameter | Description |
458+
+======================+=======================================+
459+
| ``{{ pixels }}`` | The current amount of pixels |
460+
+----------------------+---------------------------------------+
461+
| ``{{ min_pixels }}`` | The minimum required amount of pixels |
462+
+----------------------+---------------------------------------+
463+
| ``{{ height }}`` | The current image height |
464+
+----------------------+---------------------------------------+
465+
| ``{{ width }}`` | The current image width |
466+
+----------------------+---------------------------------------+
467+
438468
maxRatioMessage
439469
~~~~~~~~~~~~~~~
440470

@@ -533,5 +563,7 @@ corruptedMessage
533563
The error message when the `detectCorrupted`_ option is enabled and the image
534564
is corrupted.
535565

566+
This message has no parameters.
567+
536568
.. _`IANA website`: http://www.iana.org/assignments/media-types/image/index.html
537569
.. _`PHP GD extension`: http://php.net/manual/en/book.image.php

0 commit comments

Comments
 (0)
0