protected function getForm($configPath)
    {
        $form = null;
        $melisConfig = $this->serviceLocator->get('MelisInstallerConfig');
        $formConfig = $melisConfig->getItem($configPath);

        if ($formConfig) {
            $factory = new \Zend\Form\Factory();
            $formElements = $this->getServiceLocator()->get('FormElementManager');
            $factory->setFormElementManager($formElements);
            $form = $factory->createForm($formConfig);
        }

        return $form;
    }
protected function getForm($configPath)
    {
        $form = null;
        $melisConfig = $this->serviceLocator->get('MelisInstallerConfig');
        $formConfig = $melisConfig->getItem($configPath);

        if ($formConfig) {
            $factory = new \Zend\Form\Factory();
            $formElements = $this->getServiceLocator()->get('FormElementManager');
            $factory->setFormElementManager($formElements);
            $form = $factory->createForm($formConfig);
        }

        return $form;
    }
protected function getForm ( $ configPath ) { $ form = null ; $ melisConfig = $ this -> serviceLocator -> get ( 'MelisInstallerConfig' ) ; $ formConfig = $ melisConfig -> getItem ( $ configPath ) ; if ( $ formConfig ) { $ factory = new \ Zend \ Form \ Factory ( ) ; $ formElements = $ this -> getServiceLocator ( ) -> get ( 'FormElementManager' ) ; $ factory -> setFormElementManager ( $ formElements ) ; $ form = $ factory -> createForm ( $ formConfig ) ; } return $ form ; }
Retrieves the array configuration from app.forms

@param string $configPath

@return Form
Retrieves the array configuration from app . forms