public function createForm($formClass, $object = null, array $formOptions = [])
    {
        return $this->formFactory->createNamedBuilder('', $formClass, $object, $formOptions)->getForm();
    }
public function createForm($formClass, $object = null, array $formOptions = [])
    {
        return $this->formFactory->createNamedBuilder('', $formClass, $object, $formOptions)->getForm();
    }
public function createForm ( $ formClass , $ object = null , array $ formOptions = [ ] ) { return $ this -> formFactory -> createNamedBuilder ( '' , $ formClass , $ object , $ formOptions ) -> getForm ( ) ; }
Creates a form with the given parameters.

To simplify the request body parameters, the form name
is setting to '' when the form is going to be create.

@param string      $formClass   The FQCN of form type
@param object|null $object      Model related to the form
@param array       $formOptions Array which contains the options that will be passed

@throws InvalidOptionsException when the given options are invalid

@return FormInterface
Creates a form with the given parameters .