X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FClientType.php;h=8b351e6037d449ae1bb9b40e837371e06d94abca;hb=d8f8a5901086f243f9fa215d52baea6833e1cb55;hp=cb6b5e65b13d49987fb3735645f71bdc71fe70c6;hpb=2c2308b7830e24409c6f4a52b52a616803b1a515;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Form/Type/ClientType.php b/src/Wallabag/CoreBundle/Form/Type/ClientType.php index cb6b5e65..8b351e60 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ClientType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ClientType.php @@ -14,8 +14,8 @@ class ClientType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options) { $builder - ->add('redirect_uris', UrlType::class, array('required' => true)) - ->add('save', SubmitType::class, array('label' => 'Create new client')) + ->add('redirect_uris', UrlType::class, ['required' => true, 'label' => 'developer.client.form.redirect_uris_label']) + ->add('save', SubmitType::class, ['label' => 'developer.client.form.save_label']) ; $builder->get('redirect_uris') @@ -24,7 +24,7 @@ class ClientType extends AbstractType return $originalUri; }, function ($submittedUri) { - return array($submittedUri); + return [$submittedUri]; } )) ; @@ -32,9 +32,9 @@ class ClientType extends AbstractType public function configureOptions(OptionsResolver $resolver) { - $resolver->setDefaults(array( + $resolver->setDefaults([ 'data_class' => 'Wallabag\ApiBundle\Entity\Client', - )); + ]); } public function getBlockPrefix()