CodeExplorer CheckboxType example
$this->propertyAccessor =
$propertyAccessor ?: PropertyAccess::
createPropertyAccessor();
$this->choiceListFactory =
$choiceListFactory ??
new CachingFactoryDecorator(new PropertyAccessDecorator(new DefaultChoiceListFactory(),
$this->propertyAccessor
));
$this->translator =
$translator;
} protected function loadTypes(): array
{ return [ new Type\
FormType($this->propertyAccessor
),
new Type\
BirthdayType(),
new Type\
CheckboxType(),
new Type\
ChoiceType($this->choiceListFactory,
$this->translator
),
new Type\
CollectionType(),
new Type\
CountryType(),
new Type\
DateIntervalType(),
new Type\
DateType(),
new Type\
DateTimeType(),
new Type\
EmailType(),
new Type\
HiddenType(),
new Type\
IntegerType(),
new Type\
LanguageType(),
new Type\
LocaleType(),