* @author Timo Hund */ class LastSearchesController extends AbstractWidgetController { /** * Last searches */ public function indexAction() { $typoScriptConfiguration = $this->controllerContext->getTypoScriptConfiguration(); $lastSearchesService = GeneralUtility::makeInstance( LastSearchesService::class, /** @scrutinizer ignore-type */ $typoScriptConfiguration ); $this->view->assign('contentArguments', ['lastSearches' => $lastSearchesService->getLastSearches()]); } }