2013-11-24 17:19:14 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace ##NAMESPACE##;
|
|
|
|
|
2016-02-17 18:57:00 +01:00
|
|
|
use Symfony\Component\Form\AbstractType;
|
2013-11-24 17:19:14 +01:00
|
|
|
use Symfony\Component\Form\FormBuilderInterface;
|
2016-02-17 18:57:00 +01:00
|
|
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
2013-11-24 17:19:14 +01:00
|
|
|
|
2016-02-17 18:57:00 +01:00
|
|
|
class ##CLASS## extends AbstractType
|
2013-11-24 17:19:14 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
|
|
|
{##BUILD_CODE##
|
|
|
|
}
|
2016-02-17 18:57:00 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*/
|
|
|
|
public function configureOptions(OptionsResolver $resolver)
|
|
|
|
{
|
|
|
|
$resolver->setDefaults([
|
|
|
|
'data_class' => '##FQCN##',
|
|
|
|
'name' => '##TYPE_NAME##',
|
|
|
|
]);
|
|
|
|
}
|
2013-11-24 17:19:14 +01:00
|
|
|
}
|