protected function createComponentUploadForm(): Form
	{
		$form = $this->formFactory->create();

		$form->addUpload('sql', 'cms.database.file')
			->setRequired();

		$form->addSubmit('upload', 'cms.database.upload');

		$form->onSuccess[] = [$this, 'uploadFormSucceeded'];

		return $form;
	}
protected function createComponentUploadForm(): Form
	{
		$form = $this->formFactory->create();

		$form->addUpload('sql', 'cms.database.file')
			->setRequired();

		$form->addSubmit('upload', 'cms.database.upload');

		$form->onSuccess[] = [$this, 'uploadFormSucceeded'];

		return $form;
	}
protected function createComponentUploadForm ( ) : Form { $ form = $ this -> formFactory -> create ( ) ; $ form -> addUpload ( 'sql' , 'cms.database.file' ) -> setRequired ( ) ; $ form -> addSubmit ( 'upload' , 'cms.database.upload' ) ; $ form -> onSuccess [ ] = [ $ this , 'uploadFormSucceeded' ] ; return $ form ; }
Formular nahrani databaze
@return Form
Formular nahrani databaze