diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2019-05-09 15:21:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-09 15:21:21 +0300 |
commit | 6e67f41152ad025e74696e7140de0f9fb0d601de (patch) | |
tree | 5d87be5998bedfc2e25099be17fdc1f3e5cc45ed /src/Wallabag/CoreBundle/Form/Type/FeedType.php | |
parent | 522e37ad274361dde697da13a92ff3f846599822 (diff) | |
parent | 68a90821a305867e9b655da2dbfe558d37253990 (diff) | |
download | wallabag-6e67f41152ad025e74696e7140de0f9fb0d601de.tar.gz wallabag-6e67f41152ad025e74696e7140de0f9fb0d601de.tar.zst wallabag-6e67f41152ad025e74696e7140de0f9fb0d601de.zip |
Merge pull request #3223 from wallabag/rss2atom
Changed RSS to Atom feed and improve paging
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/FeedType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/FeedType.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/FeedType.php b/src/Wallabag/CoreBundle/Form/Type/FeedType.php new file mode 100644 index 00000000..9b34daf4 --- /dev/null +++ b/src/Wallabag/CoreBundle/Form/Type/FeedType.php | |||
@@ -0,0 +1,36 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\CoreBundle\Form\Type; | ||
4 | |||
5 | use Symfony\Component\Form\AbstractType; | ||
6 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | ||
7 | use Symfony\Component\Form\FormBuilderInterface; | ||
8 | use Symfony\Component\OptionsResolver\OptionsResolver; | ||
9 | |||
10 | class FeedType extends AbstractType | ||
11 | { | ||
12 | public function buildForm(FormBuilderInterface $builder, array $options) | ||
13 | { | ||
14 | $builder | ||
15 | ->add('feed_limit', null, [ | ||
16 | 'label' => 'config.form_feed.feed_limit', | ||
17 | 'property_path' => 'feedLimit', | ||
18 | ]) | ||
19 | ->add('save', SubmitType::class, [ | ||
20 | 'label' => 'config.form.save', | ||
21 | ]) | ||
22 | ; | ||
23 | } | ||
24 | |||
25 | public function configureOptions(OptionsResolver $resolver) | ||
26 | { | ||
27 | $resolver->setDefaults([ | ||
28 | 'data_class' => 'Wallabag\CoreBundle\Entity\Config', | ||
29 | ]); | ||
30 | } | ||
31 | |||
32 | public function getBlockPrefix() | ||
33 | { | ||
34 | return 'feed_config'; | ||
35 | } | ||
36 | } | ||