<?php
declare(strict_types=1);
namespace App\Controller\Frontend\Livescoring;
use App\Controller\Frontend\Livescoring\Service\ReadWebLivescoringReaderToken;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
final class ReaderTokenController
{
#[Route('/realtime/livescoring/{source}/{matchId}/reader-token', name: 'web_livescoring_reader_token', methods: ['GET'])]
public function __invoke(Request $request, string $source, string $matchId, ReadWebLivescoringReaderToken $read): JsonResponse
{
return $read($request, $source, $matchId);
}
}