<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

namespace Kufer\KuferTools\Teilnehmer\KursUebersicht\Detailsreiter\Downloads;

class DownloadsController extends \Kufer\KuferTools\Basis\Kursdetails\DetailsReiter\Downloads\DownloadsController
{
  protected function getUseCase(): \Kufer\KuferTools\Basis\UseCase\UseCase
  {
    return new DownloadsUseCase(
      $this->getRequestObj()
    );
  }

  protected function getRequestObj()
  {
    $requestObj = parent::getRequestObj();
    $requestObj->belegId = \GetOperations::getVarValue('belid');

    return $requestObj;
  }
}