]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/ImportBundle/Form/Type/UploadImportType.php
5d894318af912e03186e1b7310b3d222ac370138
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Form / Type / UploadImportType.php
1 <?php
2
3 namespace Wallabag\ImportBundle\Form\Type;
4
5 use Symfony\Component\Form\AbstractType;
6 use Symfony\Component\Form\FormBuilderInterface;
7
8 class UploadImportType extends AbstractType
9 {
10 public function buildForm(FormBuilderInterface $builder, array $options)
11 {
12 $builder
13 ->add('file', 'file')
14 ->add('save', 'submit')
15 ;
16 }
17
18 public function getDefaultOptions(array $options)
19 {
20 return array(
21 'csrf_protection' => false,
22 );
23 }
24
25 public function getName()
26 {
27 return 'upload_import_file';
28 }
29 }