aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Form/Type/ClientType.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ApiBundle/Form/Type/ClientType.php')
-rw-r--r--src/Wallabag/ApiBundle/Form/Type/ClientType.php20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/Wallabag/ApiBundle/Form/Type/ClientType.php b/src/Wallabag/ApiBundle/Form/Type/ClientType.php
index eaea4feb..58602d22 100644
--- a/src/Wallabag/ApiBundle/Form/Type/ClientType.php
+++ b/src/Wallabag/ApiBundle/Form/Type/ClientType.php
@@ -15,24 +15,8 @@ class ClientType extends AbstractType
15 public function buildForm(FormBuilderInterface $builder, array $options) 15 public function buildForm(FormBuilderInterface $builder, array $options)
16 { 16 {
17 $builder 17 $builder
18 ->add('name', TextType::class, ['label' => 'developer.client.form.name_label']) 18 ->add('name', TextType::class, ['label' => 'apps.old_client.form.name_label'])
19 ->add('redirect_uris', UrlType::class, [ 19 ->add('save', SubmitType::class, ['label' => 'apps.old_client.form.save_label'])
20 'required' => false,
21 'label' => 'developer.client.form.redirect_uris_label',
22 'property_path' => 'redirectUris',
23 ])
24 ->add('save', SubmitType::class, ['label' => 'developer.client.form.save_label'])
25 ;
26
27 $builder->get('redirect_uris')
28 ->addModelTransformer(new CallbackTransformer(
29 function ($originalUri) {
30 return $originalUri;
31 },
32 function ($submittedUri) {
33 return [$submittedUri];
34 }
35 ))
36 ; 20 ;
37 } 21 }
38 22