<?php
namespace App\Form;
use Symfony\Component\Form\FormBuilderInterface;
use Vich\UploaderBundle\Form\Type\VichFileType;
/**
*
* @author wendell.zheng <wxzheng@ustc.edu.cn>
*/
class AttachmentType extends NameType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
parent::buildForm($builder, $options);
$builder->add('attachment', VichFileType::class, [
'label' => '文件',
'required' => true,
'allow_delete' => false
]);
}
}