N°7063 - Forms SDK - Add Symfony forms component

error forms issue
This commit is contained in:
Benjamin Dalsass
2024-01-10 09:32:05 +01:00
parent 54d98ba4f7
commit c7281a5cfc
9 changed files with 140 additions and 14 deletions

View File

@@ -35,13 +35,13 @@ use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
*/
final class FormFactory
{
/** @var array $aFieldsDescriptions form types descriptions */
/** @var array $aFieldsDescriptions form fields descriptions */
private array $aFieldsDescriptions = [];
/** @var mixed $oFieldsData form data */
/** @var mixed $oFieldsData form fields data */
private mixed $oFieldsData = [];
/** @var array $aLayoutDescription description of the layout */
/** @var array $aLayoutDescription layout description */
private array $aLayoutDescription = [];
/** @var \Combodo\iTop\FormSDK\Service\FactoryAdapter\FormFactoryAdapterInterface[] $aAdapters list of adapters */
@@ -180,8 +180,7 @@ final class FormFactory
*/
public function CreateForm(?string $sName = null) : mixed
{
$aFieldsDescriptions = $this->GetFieldsDescriptions();
return $this->oSymfonyBridge->CreateForm($aFieldsDescriptions, $this->GetData(), $sName, $this->GetLayoutDescription());
return $this->oSymfonyBridge->CreateForm($this->GetFieldsDescriptions(), $this->GetData(), $sName, $this->GetLayoutDescription());
}
}