Introduce enumeration to deal with package specifics (IM vs GM)

Created on 17 December 2023, over 1 year ago
Updated 2 January 2024, over 1 year ago

Introduce an enum for PackageSuite and one for PackageCommand and use them across the module in place of passing strings to methods.

Introduced the method

  1. ImagemagickExecManager::getPackageSuite()

Deprecate the methods

  1. ImagemagickExecManager::getPackage()
  2. ImagemagickExecManager::getPackageManager()

ImagemagickExecManager:: checkPath() now prefers the $packageSuite argument to be a PackageSuite enum case over a string; in Imagemagick 4.0.0. it will be mandatory.
ImagemagickExecManager:: execute() now prefers the $commandargument to be a PackageCommand enum case over a string; in Imagemagick 4.0.0. it will be mandatory.

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇹Italy mondrake 🇮🇹

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024