WIP: add LOL schedule via Lol Esport Official API #1

Draft
Superkooka wants to merge 4 commits from feat/league-of-legends-schedule into main
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 2a17cd082c - Show all commits

View File

@ -57,6 +57,7 @@ class GenerateGamesCalendar
$away = $this->entityManager->getRepository(Team::class)->find($game->awayTeamId) ?? throw new \Exception('Team not found');
$events[] = Event::create($away->name . ' vs ' . $home->name)
->uniqueIdentifier($game->id)
->startsAt($game->startTimeScheduled)
->endsAt($game->endTimeScheduled ?? $game->startTimeScheduled->modify('+3 hours')) // should be a parameter of the league
->address($game->venue);