public function createForm(PropertyAccess $conf = null)
    {
        $form = $this->factory->create(new MainConfigurationFormType($this->translator, $this->languages));
        $currentConf = $conf ? ($conf->get('registry') ?: []) : [];
        $data = array_replace_recursive($this->getDefaultData($currentConf), $currentConf);
        $form->setData($data);

        return $form;
    }
public function createForm(PropertyAccess $conf = null)
    {
        $form = $this->factory->create(new MainConfigurationFormType($this->translator, $this->languages));
        $currentConf = $conf ? ($conf->get('registry') ?: []) : [];
        $data = array_replace_recursive($this->getDefaultData($currentConf), $currentConf);
        $form->setData($data);

        return $form;
    }
public function createForm ( PropertyAccess $ conf = null ) { $ form = $ this -> factory -> create ( new MainConfigurationFormType ( $ this -> translator , $ this -> languages ) ) ; $ currentConf = $ conf ? ( $ conf -> get ( 'registry' ) ? : [ ] ) : [ ] ; $ data = array_replace_recursive ( $ this -> getDefaultData ( $ currentConf ) , $ currentConf ) ; $ form -> setData ( $ data ) ; return $ form ; }
Creates a setup form. Set data if a configuration is given.

@param PropertyAccess $conf

@return FormInterface
Creates a setup form . Set data if a configuration is given .