instances added god may help
This commit is contained in:
27
lib/Service/Auth/AuthExternalIdentityGateway.php
Normal file
27
lib/Service/Auth/AuthExternalIdentityGateway.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Service\Auth;
|
||||
|
||||
use MintyPHP\Repository\User\UserExternalIdentityRepository;
|
||||
|
||||
class AuthExternalIdentityGateway
|
||||
{
|
||||
public function __construct(private readonly UserExternalIdentityRepository $userExternalIdentityRepository)
|
||||
{
|
||||
}
|
||||
|
||||
public function findByProviderTidOid(string $provider, string $tid, string $oid): ?array
|
||||
{
|
||||
return $this->userExternalIdentityRepository->findByProviderTidOid($provider, $tid, $oid);
|
||||
}
|
||||
|
||||
public function findByProviderIssuerSubject(string $provider, string $issuer, string $subject): ?array
|
||||
{
|
||||
return $this->userExternalIdentityRepository->findByProviderIssuerSubject($provider, $issuer, $subject);
|
||||
}
|
||||
|
||||
public function createLink(array $data): bool
|
||||
{
|
||||
return (bool) $this->userExternalIdentityRepository->createLink($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user