Revived API /api/v1/captcha.

Now a new captcha is created to check for a bot.
This commit is contained in:
2023-09-19 14:27:33 +06:00
parent 56cd409301
commit 27046e6674
22 changed files with 525 additions and 101 deletions

View File

@@ -0,0 +1,25 @@
<?php declare(strict_types=1);
namespace App\ServiceResults\Api\V1\CaptchaGenerateService;
use App\Captcha\Dto\ImageBody;
use App\Captcha\Dto\ImageHead;
use App\ServiceResults\ServiceResult;
final class Captcha extends ServiceResult
{
public function __construct(
private readonly ImageHead $imageHead,
private readonly ImageBody $imageBody
) { }
public function getImageHead(): ImageHead
{
return $this->imageHead;
}
public function getImageBody(): ImageBody
{
return $this->imageBody;
}
}