Classes/Controller/ManagementController.php
protected function overviewAction(ServerRequestInterface $request)
    {
        $this->getButtons();
        $demand = Demand::createFromRequest($request);
        $redirectRepository = GeneralUtility::makeInstance(RedirectRepository::class, $demand);
        $count = $redirectRepository->countRedirectsByByDemand();

        $this->view->assignMultiple([
            'redirects' => $redirectRepository->findRedirectsByDemand(),
            'hosts' => $redirectRepository->findHostsOfRedirects(),
            'statusCodes' => $redirectRepository->findStatusCodesOfRedirects(),
            'demand' => $demand,
            'defaultUrl' => GeneralUtility::makeInstance(UrlService::class)->getDefaultUrl(),
            'showHitCounter' => GeneralUtility::makeInstance(Features::class)->isFeatureEnabled('redirects.hitCount'),
            'pagination' => $this->preparePagination($demand, $count),
        ]);
    }
protected function overviewAction(ServerRequestInterface $request)
    {
        $this->getButtons();
        $demand = Demand::createFromRequest($request);
        $redirectRepository = GeneralUtility::makeInstance(RedirectRepository::class, $demand);
        $count = $redirectRepository->countRedirectsByByDemand();

        $this->view->assignMultiple([
            'redirects' => $redirectRepository->findRedirectsByDemand(),
            'hosts' => $redirectRepository->findHostsOfRedirects(),
            'statusCodes' => $redirectRepository->findStatusCodesOfRedirects(),
            'demand' => $demand,
            'defaultUrl' => GeneralUtility::makeInstance(UrlService::class)->getDefaultUrl(),
            'showHitCounter' => GeneralUtility::makeInstance(Features::class)->isFeatureEnabled('redirects.hitCount'),
            'pagination' => $this->preparePagination($demand, $count),
        ]);
    }
protected function overviewAction ( ServerRequestInterface $ request ) { $ this -> getButtons ( ) ; $ demand = Demand :: createFromRequest ( $ request ) ; $ redirectRepository = GeneralUtility :: makeInstance ( RedirectRepository :: class , $ demand ) ; $ count = $ redirectRepository -> countRedirectsByByDemand ( ) ; $ this -> view -> assignMultiple ( [ 'redirects' => $ redirectRepository -> findRedirectsByDemand ( ) , 'hosts' => $ redirectRepository -> findHostsOfRedirects ( ) , 'statusCodes' => $ redirectRepository -> findStatusCodesOfRedirects ( ) , 'demand' => $ demand , 'defaultUrl' => GeneralUtility :: makeInstance ( UrlService :: class ) -> getDefaultUrl ( ) , 'showHitCounter' => GeneralUtility :: makeInstance ( Features :: class ) -> isFeatureEnabled ( 'redirects.hitCount' ) , 'pagination' => $ this -> preparePagination ( $ demand , $ count ) , ] ) ; }
Show all redirects, and add a button to create a new redirect
@param ServerRequestInterface $request
Show all redirects and add a button to create a new redirect