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

namespace Kufer\KuferTools\Teilnehmer\Anmeldung\KursUebersicht\ShowAnmeldeDialog;

class OldShowAnmeldeDialogController extends \Kufer\KuferTools\Basis\Controller\AjaxToolController
{
  protected function getUseCase(): \Kufer\KuferTools\Basis\UseCase\UseCase
  {
    return new OldShowAnmeldeDialogUseCase(
      $this->getRequestObj()
    );
  }

  protected function getRequestObj()
  {
    $requestObj = new OldShowAnmeldeDialogRequest();
    $requestObj->kursdata = \PostOperations::getVarValue('kursdata');

    return $requestObj;
  }

  protected function getPresenter($pUseCaseResponse)
  {
    return new OldShowAnmeldeDialogPresenter($pUseCaseResponse);
  }
}