Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/validator/Constraints/Image.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
23 const SIZE_NOT_DETECTED_ERROR = '6d55c3f4-e58e-4fe3-91ee-74b492199956'; | 23 const SIZE_NOT_DETECTED_ERROR = '6d55c3f4-e58e-4fe3-91ee-74b492199956'; |
24 const TOO_WIDE_ERROR = '7f87163d-878f-47f5-99ba-a8eb723a1ab2'; | 24 const TOO_WIDE_ERROR = '7f87163d-878f-47f5-99ba-a8eb723a1ab2'; |
25 const TOO_NARROW_ERROR = '9afbd561-4f90-4a27-be62-1780fc43604a'; | 25 const TOO_NARROW_ERROR = '9afbd561-4f90-4a27-be62-1780fc43604a'; |
26 const TOO_HIGH_ERROR = '7efae81c-4877-47ba-aa65-d01ccb0d4645'; | 26 const TOO_HIGH_ERROR = '7efae81c-4877-47ba-aa65-d01ccb0d4645'; |
27 const TOO_LOW_ERROR = 'aef0cb6a-c07f-4894-bc08-1781420d7b4c'; | 27 const TOO_LOW_ERROR = 'aef0cb6a-c07f-4894-bc08-1781420d7b4c'; |
28 const TOO_FEW_PIXEL_ERROR = '1b06b97d-ae48-474e-978f-038a74854c43'; | |
29 const TOO_MANY_PIXEL_ERROR = 'ee0804e8-44db-4eac-9775-be91aaf72ce1'; | |
28 const RATIO_TOO_BIG_ERROR = '70cafca6-168f-41c9-8c8c-4e47a52be643'; | 30 const RATIO_TOO_BIG_ERROR = '70cafca6-168f-41c9-8c8c-4e47a52be643'; |
29 const RATIO_TOO_SMALL_ERROR = '59b8c6ef-bcf2-4ceb-afff-4642ed92f12e'; | 31 const RATIO_TOO_SMALL_ERROR = '59b8c6ef-bcf2-4ceb-afff-4642ed92f12e'; |
30 const SQUARE_NOT_ALLOWED_ERROR = '5d41425b-facb-47f7-a55a-de9fbe45cb46'; | 32 const SQUARE_NOT_ALLOWED_ERROR = '5d41425b-facb-47f7-a55a-de9fbe45cb46'; |
31 const LANDSCAPE_NOT_ALLOWED_ERROR = '6f895685-7cf2-4d65-b3da-9029c5581d88'; | 33 const LANDSCAPE_NOT_ALLOWED_ERROR = '6f895685-7cf2-4d65-b3da-9029c5581d88'; |
32 const PORTRAIT_NOT_ALLOWED_ERROR = '65608156-77da-4c79-a88c-02ef6d18c782'; | 34 const PORTRAIT_NOT_ALLOWED_ERROR = '65608156-77da-4c79-a88c-02ef6d18c782'; |
43 self::SIZE_NOT_DETECTED_ERROR => 'SIZE_NOT_DETECTED_ERROR', | 45 self::SIZE_NOT_DETECTED_ERROR => 'SIZE_NOT_DETECTED_ERROR', |
44 self::TOO_WIDE_ERROR => 'TOO_WIDE_ERROR', | 46 self::TOO_WIDE_ERROR => 'TOO_WIDE_ERROR', |
45 self::TOO_NARROW_ERROR => 'TOO_NARROW_ERROR', | 47 self::TOO_NARROW_ERROR => 'TOO_NARROW_ERROR', |
46 self::TOO_HIGH_ERROR => 'TOO_HIGH_ERROR', | 48 self::TOO_HIGH_ERROR => 'TOO_HIGH_ERROR', |
47 self::TOO_LOW_ERROR => 'TOO_LOW_ERROR', | 49 self::TOO_LOW_ERROR => 'TOO_LOW_ERROR', |
50 self::TOO_FEW_PIXEL_ERROR => 'TOO_FEW_PIXEL_ERROR', | |
51 self::TOO_MANY_PIXEL_ERROR => 'TOO_MANY_PIXEL_ERROR', | |
48 self::RATIO_TOO_BIG_ERROR => 'RATIO_TOO_BIG_ERROR', | 52 self::RATIO_TOO_BIG_ERROR => 'RATIO_TOO_BIG_ERROR', |
49 self::RATIO_TOO_SMALL_ERROR => 'RATIO_TOO_SMALL_ERROR', | 53 self::RATIO_TOO_SMALL_ERROR => 'RATIO_TOO_SMALL_ERROR', |
50 self::SQUARE_NOT_ALLOWED_ERROR => 'SQUARE_NOT_ALLOWED_ERROR', | 54 self::SQUARE_NOT_ALLOWED_ERROR => 'SQUARE_NOT_ALLOWED_ERROR', |
51 self::LANDSCAPE_NOT_ALLOWED_ERROR => 'LANDSCAPE_NOT_ALLOWED_ERROR', | 55 self::LANDSCAPE_NOT_ALLOWED_ERROR => 'LANDSCAPE_NOT_ALLOWED_ERROR', |
52 self::PORTRAIT_NOT_ALLOWED_ERROR => 'PORTRAIT_NOT_ALLOWED_ERROR', | 56 self::PORTRAIT_NOT_ALLOWED_ERROR => 'PORTRAIT_NOT_ALLOWED_ERROR', |
58 public $maxWidth; | 62 public $maxWidth; |
59 public $maxHeight; | 63 public $maxHeight; |
60 public $minHeight; | 64 public $minHeight; |
61 public $maxRatio; | 65 public $maxRatio; |
62 public $minRatio; | 66 public $minRatio; |
67 public $minPixels; | |
68 public $maxPixels; | |
63 public $allowSquare = true; | 69 public $allowSquare = true; |
64 public $allowLandscape = true; | 70 public $allowLandscape = true; |
65 public $allowPortrait = true; | 71 public $allowPortrait = true; |
66 public $detectCorrupted = false; | 72 public $detectCorrupted = false; |
67 | 73 |
70 public $sizeNotDetectedMessage = 'The size of the image could not be detected.'; | 76 public $sizeNotDetectedMessage = 'The size of the image could not be detected.'; |
71 public $maxWidthMessage = 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.'; | 77 public $maxWidthMessage = 'The image width is too big ({{ width }}px). Allowed maximum width is {{ max_width }}px.'; |
72 public $minWidthMessage = 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.'; | 78 public $minWidthMessage = 'The image width is too small ({{ width }}px). Minimum width expected is {{ min_width }}px.'; |
73 public $maxHeightMessage = 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.'; | 79 public $maxHeightMessage = 'The image height is too big ({{ height }}px). Allowed maximum height is {{ max_height }}px.'; |
74 public $minHeightMessage = 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.'; | 80 public $minHeightMessage = 'The image height is too small ({{ height }}px). Minimum height expected is {{ min_height }}px.'; |
81 public $minPixelsMessage = 'The image has too few pixels ({{ pixels }} pixels). Minimum amount expected is {{ min_pixels }} pixels.'; | |
82 public $maxPixelsMessage = 'The image has too many pixels ({{ pixels }} pixels). Maximum amount expected is {{ max_pixels }} pixels.'; | |
75 public $maxRatioMessage = 'The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.'; | 83 public $maxRatioMessage = 'The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.'; |
76 public $minRatioMessage = 'The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.'; | 84 public $minRatioMessage = 'The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.'; |
77 public $allowSquareMessage = 'The image is square ({{ width }}x{{ height }}px). Square images are not allowed.'; | 85 public $allowSquareMessage = 'The image is square ({{ width }}x{{ height }}px). Square images are not allowed.'; |
78 public $allowLandscapeMessage = 'The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.'; | 86 public $allowLandscapeMessage = 'The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.'; |
79 public $allowPortraitMessage = 'The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.'; | 87 public $allowPortraitMessage = 'The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.'; |