diff --git a/src/Controller/AdminGallyController.php b/src/Controller/AdminGallyController.php index 1d737b9..430c850 100644 --- a/src/Controller/AdminGallyController.php +++ b/src/Controller/AdminGallyController.php @@ -51,8 +51,8 @@ public function renderGallyConfigForm(Request $request): Response return $this->render('@GallySyliusPlugin/Config/_form.html.twig', [ 'connectionForm' => $configForm->createView(), - 'testForm' => $this->createForm(TestConnectionType::class), - 'syncForm' => $this->createForm(SyncSourceFieldsType::class), + 'testForm' => $this->createForm(TestConnectionType::class)->createView(), + 'syncForm' => $this->createForm(SyncSourceFieldsType::class)->createView(), ]); } @@ -77,9 +77,9 @@ public function renderTestConnectionForm(Request $request): Response } return $this->render('@GallySyliusPlugin/Config/_form.html.twig', [ - 'connectionForm' => $this->createForm(GallyConfigurationType::class, $gallyConfiguration), - 'testForm' => $testForm, - 'syncForm' => $this->createForm(SyncSourceFieldsType::class), + 'connectionForm' => $this->createForm(GallyConfigurationType::class, $gallyConfiguration)->createView(), + 'testForm' => $testForm->createView(), + 'syncForm' => $this->createForm(SyncSourceFieldsType::class)->createView(), ]); } @@ -96,9 +96,9 @@ public function renderSyncFieldsForm(Request $request): Response } return $this->render('@GallySyliusPlugin/Config/_form.html.twig', [ - 'connectionForm' => $this->createForm(GallyConfigurationType::class, $gallyConfiguration), - 'testForm' => $this->createForm(TestConnectionType::class), - 'syncForm' => $syncForm, + 'connectionForm' => $this->createForm(GallyConfigurationType::class, $gallyConfiguration)->createView(), + 'testForm' => $this->createForm(TestConnectionType::class)->createView(), + 'syncForm' => $syncForm->createView(), ]); } }