src/Controller/ApiVolleyController.php line 120
<?phpnamespace App\Controller;use App\Services\ApiVolley\ApiVolleyManager;use Doctrine\ORM\NonUniqueResultException;use http\Client\Response;use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\JsonResponse;use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;use Symfony\Contracts\HttpClient\Exception\DecodingExceptionInterface;use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;class ApiVolleyController extends AbstractController{private ApiVolleyManager $grubVolleyManager;public function __construct(ApiVolleyManager $grubVolleyManager){$this->grubVolleyManager = $grubVolleyManager;}/*** @return array* @throws ClientExceptionInterface* @throws DecodingExceptionInterface* @throws RedirectionExceptionInterface* @throws ServerExceptionInterface* @throws TransportExceptionInterface*/public function grubTournaments(): JsonResponse{return $this->grubVolleyManager->fillTournaments();}/*** @throws ClientExceptionInterface* @throws DecodingExceptionInterface* @throws RedirectionExceptionInterface* @throws ServerExceptionInterface* @throws TransportExceptionInterface*/public function grubTournamentGames(): JsonResponse{return $this->grubVolleyManager->grubTournamentGames();}/*** @return JsonResponse* @throws ClientExceptionInterface* @throws DecodingExceptionInterface* @throws RedirectionExceptionInterface* @throws ServerExceptionInterface* @throws TransportExceptionInterface*/public function grubGames(): JsonResponse{return $this->grubVolleyManager->grubGames();}/*** @return JsonResponse*/public function grubGame(): JsonResponse{return $this->grubVolleyManager->grubGame("01H7W6JFTCNW9P04WCF7HH1ZP7");}/*** @return JsonResponse* @throws ClientExceptionInterface* @throws DecodingExceptionInterface* @throws RedirectionExceptionInterface* @throws ServerExceptionInterface* @throws TransportExceptionInterface*/public function grubPlayers(): JsonResponse{return $this->grubVolleyManager->grubPlayers();}/*** @return JsonResponse* @throws DecodingExceptionInterface* @throws TransportExceptionInterface*/public function grubPlayer(): JsonResponse{return $this->grubVolleyManager->grubPlayer("01FPWFJKJCGDXW1WK5CF0E1FBA");}/*** @return JsonResponse* @throws ClientExceptionInterface* @throws DecodingExceptionInterface* @throws RedirectionExceptionInterface* @throws ServerExceptionInterface* @throws TransportExceptionInterface*/public function grubTeams(): JsonResponse{return $this->grubVolleyManager->grubTeams();}/*** @return JsonResponse* @throws ClientExceptionInterface* @throws DecodingExceptionInterface* @throws NonUniqueResultException* @throws RedirectionExceptionInterface* @throws ServerExceptionInterface* @throws TransportExceptionInterface*/public function grubScore(): JsonResponse{return $this->grubVolleyManager->grubScore();}}