Skip to content

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 ⭐️

488 B
Raw Blame
<?php

namespace HiEvents\Http\Actions\Auth\Sso;

use HiEvents\Http\Actions\BaseAction;
use HiEvents\Services\Application\Handlers\Auth\Sso\GetSsoProvidersHandler;
use Illuminate\Http\JsonResponse;

class GetSsoProvidersAction extends BaseAction
{
    public function __construct(
        private readonly GetSsoProvidersHandler $handler,
    ) {}

    public function __invoke(): JsonResponse
    {
        return $this->jsonResponse($this->handler->handle(), wrapInData: true);
    }
}