instances added god may help
This commit is contained in:
22
lib/Service/Auth/AuthAvatarGateway.php
Normal file
22
lib/Service/Auth/AuthAvatarGateway.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user