[TASK] Migrate EXT:form Backend Wizard to Routing
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Classes / Controller / WizardController.php
index 5f93f7c..34c86f8 100644 (file)
@@ -37,13 +37,17 @@ class WizardController
      *
      * The action which should be taken when the wizard is loaded
      *
-     * @return void
+     * @param ServerRequestInterface $request
+     * @param ResponseInterface $response
+     * @return ResponseInterface returns a 500 error or a valid JSON response
      */
-    public function indexAction()
+    public function indexAction(ServerRequestInterface $request, ResponseInterface $response)
     {
         /** @var $view \TYPO3\CMS\Form\View\Wizard\WizardView */
         $view = GeneralUtility::makeInstance(\TYPO3\CMS\Form\View\Wizard\WizardView::class, $this->getRepository());
-        $view->render();
+        $content = $view->render();
+        $response->getBody()->write($content);
+        return $response;
     }
 
     /**