Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/Components/Countdown/CountdownComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public function __construct(

public function render(): void
{

$this->template->render(__DIR__ . DIRECTORY_SEPARATOR . 'countdown.latte', [
'id' => $this->id,
'countdownTo' => $this->countdownTo,
Expand Down
5 changes: 3 additions & 2 deletions app/Components/ScheduleList/ScheduleListComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@ public function __construct(Container $container, private readonly EventModel $e
parent::__construct($container);
}

public function inject(fksdbDownloader $fksdbDownloader): void
public function inject(FKSDBDownloader $fksdbDownloader): void
{
$this->fksdbDownloader = $fksdbDownloader;
}

/**
* @param int $competitionDetailItemId Schedule item id for competition to render timeline
* @throws \Throwable
*/
public function render(int $competitionDetailItemId)
public function render(int $competitionDetailItemId): void
{
$scheduleGroups = $this->fksdbDownloader->download(
new ScheduleRequest(
Expand Down
22 changes: 22 additions & 0 deletions app/Modules/Fof/DefaultModule/AboutTheCompetitionPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@

namespace App\Modules\Fof\DefaultModule;

use App\Models\Downloader\EventOrganizersRequest;
use App\Models\Downloader\FKSDBDownloader;

class AboutTheCompetitionPresenter extends BasePresenter
{
private readonly FKSDBDownloader $downloader;

public function inject(FKSDBDownloader $downloader): void
{
$this->downloader = $downloader;
}

/**
* @throws \Throwable
*/
public function renderOrganizers(): void
{
$organizers = $this->downloader->download(new EventOrganizersRequest($this->getNewestEvent()->eventId));
usort(
$organizers,
fn(array $a, array $b) => $b['order'] <=> $a['order']
);
$this->template->organizers = $organizers;
}
}
Loading
Loading