From 81635b4efa17363c14b9d6212823811248068f7f Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Wed, 28 Jun 2023 17:26:15 +0600 Subject: [PATCH] This commit adds an ImageManager class that handles the creation of Image instances. It implements an ImageManagerContract, thereby adhering to set guidelines for the creation of captchas. The ImageManager class contains a createImage method capable of creating new instances of Image, allowing for increased flexibility and consistency in CAPTCHA image generation. --- app/Captcha/Contracts/ImageManager.php | 8 ++++++++ app/Captcha/Images/ImageManager.php | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 app/Captcha/Contracts/ImageManager.php create mode 100644 app/Captcha/Images/ImageManager.php diff --git a/app/Captcha/Contracts/ImageManager.php b/app/Captcha/Contracts/ImageManager.php new file mode 100644 index 0000000..4764aad --- /dev/null +++ b/app/Captcha/Contracts/ImageManager.php @@ -0,0 +1,8 @@ +imageClassName($width, $height); + } + +}