Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\Services\Application\Handlers\Auth\Sso;
use HiEvents\Enterprise\Sso\Services\Domain\SsoConnectionLinkService;
use HiEvents\Repository\Eloquent\Value\OrderAndDirection;
use HiEvents\Repository\Interfaces\UserIdentityRepositoryInterface;
use HiEvents\Services\Application\Handlers\Auth\Sso\DTO\SsoSignInMethodsResult;
class GetSsoIdentitiesHandler
{
public function __construct(
private readonly UserIdentityRepositoryInterface $userIdentityRepository,
private readonly SsoConnectionLinkService $connectionLinkService,
) {}
public function handle(int $userId): SsoSignInMethodsResult
{
return new SsoSignInMethodsResult(
identities: $this->userIdentityRepository->findWhere(
where: ['user_id' => $userId],
orderAndDirections: [new OrderAndDirection('created_at', 'asc')],
),
linkableConnections: $this->connectionLinkService->linkableConnections($userId),
);
}
}