From e0f9010ec2a558f6cf7d16fb96a2c4cdb34e3f37 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 15 Jun 2017 09:43:48 +0200 Subject: Notifications Signed-off-by: Thomas Citharel --- app/config/services.yml | 9 +++++++++ app/config/wallabag.yml | 1 + 2 files changed, 10 insertions(+) (limited to 'app/config') diff --git a/app/config/services.yml b/app/config/services.yml index 7b85d846..3b454760 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -13,14 +13,23 @@ services: tags: - { name: twig.extension } + twig.extension.date: + class: Twig_Extensions_Extension_Date + arguments: + - "@translator" + tags: + - { name: twig.extension } + wallabag.twig_extension: class: Wallabag\CoreBundle\Twig\WallabagExtension public: false arguments: - "@wallabag_core.entry_repository" - "@wallabag_core.tag_repository" + - "@wallabag_core.notification_repository" - "@security.token_storage" - "%wallabag_core.cache_lifetime%" + - "%wallabag_core.notifications_nb%" - "@translator" tags: - { name: twig.extension } diff --git a/app/config/wallabag.yml b/app/config/wallabag.yml index b45934e4..ab12d68a 100644 --- a/app/config/wallabag.yml +++ b/app/config/wallabag.yml @@ -22,6 +22,7 @@ wallabag_core: cache_lifetime: 10 action_mark_as_read: 1 list_mode: 0 + notifications_nb: 5 fetching_error_message_title: 'No title found' fetching_error_message: | wallabag can't retrieve contents for this article. Please troubleshoot this issue. -- cgit v1.2.3