From f721850b9db296f484170c96627864bbc8c148f6 Mon Sep 17 00:00:00 2001 From: Andre Padberg Date: Thu, 8 Aug 2024 14:26:53 +0200 Subject: [PATCH] fix deprecations --- Classes/Controller/BackendModuleController.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Classes/Controller/BackendModuleController.php b/Classes/Controller/BackendModuleController.php index ba19071..ed4bb2a 100644 --- a/Classes/Controller/BackendModuleController.php +++ b/Classes/Controller/BackendModuleController.php @@ -85,9 +85,7 @@ public function indexAction(): ResponseInterface ), ]); - $moduleTemplate->setContent($this->view->render()); - - return $this->htmlResponse($moduleTemplate->renderContent()); + return $moduleTemplate->renderResponse(); } public function detailAction(): ResponseInterface @@ -122,9 +120,7 @@ public function detailAction(): ResponseInterface ] ); - $moduleTemplate->setContent($this->view->render()); - - return $this->htmlResponse($moduleTemplate->renderContent()); + return $moduleTemplate->renderResponse(); } public function flushAction(): ResponseInterface @@ -285,6 +281,6 @@ private function getNoCacheFoundMessage(): object private function showFlashMessage(FlashMessage $message): void { $messageQueue = GeneralUtility::makeInstance(FlashMessageService::class)->getMessageQueueByIdentifier(); - $messageQueue->addMessage($message); + $messageQueue->enqueue($message); } }