Skip to content

Commit

Permalink
fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreAOE committed Aug 8, 2024
1 parent e3e848b commit f721850
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Classes/Controller/BackendModuleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}

0 comments on commit f721850

Please sign in to comment.