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.
This commit is contained in:
8
app/Captcha/Contracts/ImageManager.php
Normal file
8
app/Captcha/Contracts/ImageManager.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace App\Captcha\Contracts;
|
||||
|
||||
interface ImageManager
|
||||
{
|
||||
public function createImage(int $width, int $height): Image;
|
||||
}
|
Reference in New Issue
Block a user