Skip to content

Commit 6d9a440

Browse files
committed
Put the Exception inside the ImageResize class so older PHP versions can handle it as well + reverted the composer.json
1 parent 44c184a commit 6d9a440

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
"suggest": {
1919
"ext-exif": "Auto-rotate jpeg files"
2020
},
21-
"autoload" : {
22-
"psr-4": {
23-
"Eventviva\\":"lib/"
24-
}
21+
"autoload": {
22+
"classmap": ["lib"]
2523
}
2624
}

lib/ImageResize.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,3 +573,8 @@ function imageflip($image, $mode) {
573573
imagedestroy($temp_image);
574574
}
575575
}
576+
577+
/**
578+
* PHP Exception used in the ImageResize class
579+
*/
580+
class ImageResizeException extends \Exception {}

lib/ImageResizeException.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)