Files
breadcrumb-the-shire/lib/Service/Auth/AuthAvatarGateway.php
2026-02-23 12:58:19 +01:00

23 lines
503 B
PHP

<?php
namespace MintyPHP\Service\Auth;
use MintyPHP\Service\User\UserAvatarService;
class AuthAvatarGateway
{
public function __construct(private readonly UserAvatarService $userAvatarService)
{
}
public function isValidUuid(string $uuid): bool
{
return $this->userAvatarService->isValidUuid($uuid);
}
public function saveBinary(string $uuid, string $binary, string $mime): void
{
$this->userAvatarService->saveBinary($uuid, $binary, $mime);
}
}