Changed the project structure.

This commit is contained in:
2024-04-25 19:56:34 +05:00
parent 01153867b3
commit 85e181e51c
392 changed files with 362 additions and 316 deletions

View File

@@ -0,0 +1,18 @@
<?php declare(strict_types=1);
namespace App\Captcha\Images;
use App\Captcha\Contracts\Image;
use App\Captcha\Contracts\ImageManager as ImageManagerContract;
final class ImageManager implements ImageManagerContract
{
public function __construct(
private readonly string $imageClassName
) { }
public function createImage(int $width, int $height): Image
{
return new $this->imageClassName($width, $height);
}
}