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

namespace Kufer\KuferTools\Oeffentlich\DoLogout;

class DoLogoutController extends \Kufer\KuferTools\Basis\Controller\Controller
{
  protected function getUseCase(): \Kufer\KuferTools\Basis\UseCase\UseCase
  {
    return new DoLogoutUseCase(
      $this->getRequestObj(),
      new \SecurityOperations()
    );
  }

  protected function getRequestObj()
  {
    return new DoLogoutRequest();
  }

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