Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 04790be

Browse filesBrowse files
MrYamousjaviereguiluz
authored andcommitted
[Validator] Validate SVG ratio in Image validator
1 parent dfeaef1 commit 04790be
Copy full SHA for 04790be

File tree

1 file changed

+20
-0
lines changed
Filter options

1 file changed

+20
-0
lines changed

‎reference/constraints/Image.rst

Copy file name to clipboardExpand all lines: reference/constraints/Image.rst
+20Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ add several other options.
210210

211211
If this option is false, the image cannot be landscape oriented.
212212

213+
.. versionadded:: 7.3
214+
215+
The ``allowLandscape`` option support for SVG files was introduced in Symfony 7.3.
216+
213217
``allowLandscapeMessage``
214218
~~~~~~~~~~~~~~~~~~~~~~~~~
215219

@@ -234,6 +238,10 @@ Parameter Description
234238

235239
If this option is false, the image cannot be portrait oriented.
236240

241+
.. versionadded:: 7.3
242+
243+
The ``allowPortrait`` option support for SVG files was introduced in Symfony 7.3.
244+
237245
``allowPortraitMessage``
238246
~~~~~~~~~~~~~~~~~~~~~~~~
239247

@@ -260,6 +268,10 @@ If this option is false, the image cannot be a square. If you want to force
260268
a square image, then leave this option as its default ``true`` value
261269
and set `allowLandscape`_ and `allowPortrait`_ both to ``false``.
262270

271+
.. versionadded:: 7.3
272+
273+
The ``allowSquare`` option support for SVG files was introduced in Symfony 7.3.
274+
263275
``allowSquareMessage``
264276
~~~~~~~~~~~~~~~~~~~~~~
265277

@@ -358,6 +370,10 @@ Parameter Description
358370
If set, the aspect ratio (``width / height``) of the image file must be less
359371
than or equal to this value.
360372

373+
.. versionadded:: 7.3
374+
375+
The ``maxRatio`` option support for SVG files was introduced in Symfony 7.3.
376+
361377
``maxRatioMessage``
362378
~~~~~~~~~~~~~~~~~~~
363379

@@ -477,6 +493,10 @@ Parameter Description
477493
If set, the aspect ratio (``width / height``) of the image file must be greater
478494
than or equal to this value.
479495

496+
.. versionadded:: 7.3
497+
498+
The ``minRatio`` option support for SVG files was introduced in Symfony 7.3.
499+
480500
``minRatioMessage``
481501
~~~~~~~~~~~~~~~~~~~
482502

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.