3 namespace Wallabag\ApiBundle\Form\Type
;
5 use Symfony\Component\Form\AbstractType
;
6 use Symfony\Component\Form\CallbackTransformer
;
7 use Symfony\Component\Form\Extension\Core\Type\SubmitType
;
8 use Symfony\Component\Form\Extension\Core\Type\UrlType
;
9 use Symfony\Component\Form\Extension\Core\Type\TextType
;
10 use Symfony\Component\Form\FormBuilderInterface
;
11 use Symfony\Component\OptionsResolver\OptionsResolver
;
13 class ClientType
extends AbstractType
15 public function buildForm(FormBuilderInterface
$builder, array $options)
18 ->add('name', TextType
::class, ['label' => 'apps.old_client.form.name_label'])
19 ->add('save', SubmitType
::class, ['label' => 'apps.old_client.form.save_label'])
23 public function configureOptions(OptionsResolver
$resolver)
25 $resolver->setDefaults([
26 'data_class' => 'Wallabag\ApiBundle\Entity\Client',
30 public function getBlockPrefix()