eventRepository = $eventRepository; $this->dataProcessing = $dataProcessing; $this->demandFactory = $demandFactory; $this->metaInformationService = $metaInformationService; } protected function initializeAction(): void { parent::initializeAction(); $this->dataProcessing->setConfigurationManager($this->configurationManager); } public function listAction(): void { $demand = $this->demandFactory->fromSettings($this->settings); $events = $this->eventRepository->findByDemand($demand); $this->view->assign('events', $events); } /** * @Extbase\IgnoreValidation("event") */ public function showAction(Event $event): void { $this->metaInformationService->setEvent($event); $this->view->assign('event', $event); } /** * @deprecated Use listAction instead and configure settings properly. * Use Settings or something else to switch between list and teaser rendering. */ public function teaserAction(): void { $this->view->assignMultiple([ 'events' => $this->eventRepository->findByUids($this->settings['eventUids']), ]); } public function searchAction(string $search = ''): void { $this->view->assign('search', $search); $this->view->assign('events', $this->eventRepository->findSearchWord($search)); } }