$builder =
$type->
createBuilder($this,
$name,
$options);
// Explicitly call buildForm() in order to be able to override either
// createBuilder() or buildForm() in the resolved form type
$type->
buildForm($builder,
$builder->
getOptions());
return $builder;
} public function createBuilderForProperty(string
$class, string
$property, mixed
$data = null, array
$options =
[]): FormBuilderInterface
{ if (null ===
$guesser =
$this->registry->
getTypeGuesser()) { return $this->
createNamedBuilder($property, TextType::
class,
$data,
$options);
} $typeGuess =
$guesser->
guessType($class,
$property);
$maxLengthGuess =
$guesser->
guessMaxLength($class,
$property);
$requiredGuess =
$guesser->
guessRequired($class,
$property);
$patternGuess =
$guesser->
guessPattern($class,
$property);
$type =
$typeGuess ?
$typeGuess->
getType() : TextType::
class;
$maxLength =
$maxLengthGuess?->
getValue();