diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2015-12-22 10:16:34 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-01-15 09:35:38 +0100 |
commit | 619cc45359ead519b64129181a07e14160fbbfcb (patch) | |
tree | 328691553a67be72a1156ff976036ed0ac7b85bb /src/Wallabag/CoreBundle/Form/Type/EditEntryType.php | |
parent | 516022d60ea5c4e0c18a222590d23190a2c7765f (diff) | |
download | wallabag-619cc45359ead519b64129181a07e14160fbbfcb.tar.gz wallabag-619cc45359ead519b64129181a07e14160fbbfcb.tar.zst wallabag-619cc45359ead519b64129181a07e14160fbbfcb.zip |
Symfony Upgrade Fixer FTW
symfony-upgrade-fixer fix src/Wallabag/
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/EditEntryType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/EditEntryType.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php index 0fa4b71f..0cb29881 100644 --- a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php +++ b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php | |||
@@ -3,6 +3,9 @@ | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | 3 | namespace Wallabag\CoreBundle\Form\Type; |
4 | 4 | ||
5 | use Symfony\Component\Form\AbstractType; | 5 | use Symfony\Component\Form\AbstractType; |
6 | use Symfony\Component\Form\Extension\Core\Type\CheckboxType; | ||
7 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
8 | use Symfony\Component\Form\Extension\Core\Type\TextType; | ||
6 | use Symfony\Component\Form\FormBuilderInterface; | 9 | use Symfony\Component\Form\FormBuilderInterface; |
7 | use Symfony\Component\OptionsResolver\OptionsResolver; | 10 | use Symfony\Component\OptionsResolver\OptionsResolver; |
8 | 11 | ||
@@ -11,14 +14,14 @@ class EditEntryType extends AbstractType | |||
11 | public function buildForm(FormBuilderInterface $builder, array $options) | 14 | public function buildForm(FormBuilderInterface $builder, array $options) |
12 | { | 15 | { |
13 | $builder | 16 | $builder |
14 | ->add('title', 'text', array('required' => true)) | 17 | ->add('title', TextType::class, array('required' => true)) |
15 | ->add('is_public', 'checkbox', array('required' => false)) | 18 | ->add('is_public', CheckboxType::class, array('required' => false)) |
16 | // @todo: add autocomplete | 19 | // @todo: add autocomplete |
17 | // ->add('tags', 'entity', array( | 20 | // ->add('tags', 'entity', array( |
18 | // 'class' => 'Wallabag\CoreBundle\Entity\Tag', | 21 | // 'class' => 'Wallabag\CoreBundle\Entity\Tag', |
19 | // 'choice_translation_domain' => true, | 22 | // 'choice_translation_domain' => true, |
20 | // )) | 23 | // )) |
21 | ->add('save', 'submit') | 24 | ->add('save', SubmitType::class) |
22 | ; | 25 | ; |
23 | } | 26 | } |
24 | 27 | ||
@@ -29,7 +32,7 @@ class EditEntryType extends AbstractType | |||
29 | )); | 32 | )); |
30 | } | 33 | } |
31 | 34 | ||
32 | public function getName() | 35 | public function getBlockPrefix() |
33 | { | 36 | { |
34 | return 'entry'; | 37 | return 'entry'; |
35 | } | 38 | } |