From 490a9081ecc5f90dcc58fe8c21bbc4c9d8139df4 Mon Sep 17 00:00:00 2001 From: Benjamin Paap Date: Mon, 26 Oct 2015 11:08:32 +0100 Subject: [PATCH] Options for form were not passed through --- Parser/FormTypeParser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Parser/FormTypeParser.php b/Parser/FormTypeParser.php index 55a686007..aec513b55 100644 --- a/Parser/FormTypeParser.php +++ b/Parser/FormTypeParser.php @@ -306,16 +306,16 @@ private function getTypeInstance($type) return $refl->newInstance(); } - private function createForm($item) + private function createForm($item, $data = null, array $options = []) { if ($this->implementsType($item)) { $type = $this->getTypeInstance($item); - return $this->formFactory->create($type); + return $this->formFactory->create($type, $data, $options); } try { - return $this->formFactory->create($item); + return $this->formFactory->create($item, $data, $options); } catch (UnexpectedTypeException $e) { // nothing } catch (InvalidArgumentException $e) {