public function createForm(FormInterface $form, PostInterface $post)
    {
        return $this->formFactory->create(PostType::class, $post, ['form_id' => $form->getId()]);
    }
public function createForm(FormInterface $form, PostInterface $post)
    {
        return $this->formFactory->create(PostType::class, $post, ['form_id' => $form->getId()]);
    }
public function createForm ( FormInterface $ form , PostInterface $ post ) { return $ this -> formFactory -> create ( PostType :: class , $ post , [ 'form_id' => $ form -> getId ( ) ] ) ; }
Create a Symfony Form instance

@param FormInterface $form
@param PostInterface $post

@return \Symfony\Component\Form\FormInterface
Create a Symfony Form instance