public function createForm($type, $data = null, array $options = [])
    {
        return $this->application['form.factory']->create($type, $data, $options);
    }
public function createForm($type, $data = null, array $options = [])
    {
        return $this->application['form.factory']->create($type, $data, $options);
    }
public function createForm ( $ type , $ data = null , array $ options = [ ] ) { return $ this -> application [ 'form.factory' ] -> create ( $ type , $ data , $ options ) ; }
Creates a new form.

@param string $type
@param mixed  $data
@param array  $options

@return FormInterface
Creates a new form .