aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-11-07 09:30:37 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-11-16 23:07:34 +0100
commitf052f1fd57e51c8ae5ac17587636d608619a2057 (patch)
tree7b9169ff4522356d979ea94858d9cb892be90611 /src/Wallabag/CoreBundle/Form
parent287204cda72c73e171cd1bf801bc08f7e5d7d111 (diff)
downloadwallabag-f052f1fd57e51c8ae5ac17587636d608619a2057.tar.gz
wallabag-f052f1fd57e51c8ae5ac17587636d608619a2057.tar.zst
wallabag-f052f1fd57e51c8ae5ac17587636d608619a2057.zip
Added constants for redirection values
Diffstat (limited to 'src/Wallabag/CoreBundle/Form')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/ConfigType.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php
index 3b1a8026..7e3b9dd4 100644
--- a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php
@@ -7,6 +7,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
7use Symfony\Component\Form\Extension\Core\Type\SubmitType; 7use Symfony\Component\Form\Extension\Core\Type\SubmitType;
8use Symfony\Component\Form\FormBuilderInterface; 8use Symfony\Component\Form\FormBuilderInterface;
9use Symfony\Component\OptionsResolver\OptionsResolver; 9use Symfony\Component\OptionsResolver\OptionsResolver;
10use Wallabag\CoreBundle\Entity\Config;
10 11
11class ConfigType extends AbstractType 12class ConfigType extends AbstractType
12{ 13{
@@ -51,8 +52,8 @@ class ConfigType extends AbstractType
51 ->add('action_mark_as_read', ChoiceType::class, [ 52 ->add('action_mark_as_read', ChoiceType::class, [
52 'label' => 'config.form_settings.action_mark_as_read.label', 53 'label' => 'config.form_settings.action_mark_as_read.label',
53 'choices' => [ 54 'choices' => [
54 'config.form_settings.action_mark_as_read.redirect_homepage' => '0', 55 'config.form_settings.action_mark_as_read.redirect_homepage' => Config::REDIRECT_TO_HOMEPAGE,
55 'config.form_settings.action_mark_as_read.redirect_current_page' => '1', 56 'config.form_settings.action_mark_as_read.redirect_current_page' => Config::REDIRECT_TO_CURRENT_PAGE,
56 ], 57 ],
57 ]) 58 ])
58 ->add('language', ChoiceType::class, [ 59 ->add('language', ChoiceType::class, [