X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2Fconfig%2Fservices.yml;h=25bbe5dc007d4e4fc11c01c11e2aed42a059c2c2;hb=92a66835624acf6fd14f5adc5f8aab399658592e;hp=ff6a582bb36bfee7b006168eaa5889badde0d69d;hpb=fcb1fba5c2fdb12c9f4041bd334aaced6f302d91;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/config/services.yml b/app/config/services.yml index ff6a582b..25bbe5dc 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -2,12 +2,6 @@ parameters: lexik_form_filter.get_filter.doctrine_orm.class: Wallabag\CoreBundle\Event\Subscriber\CustomDoctrineORMSubscriber services: - # used for tests - filesystem_cache: - class: Doctrine\Common\Cache\FilesystemCache - arguments: - - %kernel.cache_dir%/doctrine/metadata - twig.extension.text: class: Twig_Extensions_Extension_Text tags: @@ -16,5 +10,37 @@ services: wallabag.twig_extension: class: Wallabag\CoreBundle\Twig\WallabagExtension public: false + arguments: + - "@wallabag_core.entry_repository" + - "@wallabag_core.tag_repository" + - "@security.token_storage" + - "%wallabag_core.cache_lifetime%" + - "@translator" + tags: + - { name: twig.extension } + + wallabag.twig_piwik_extension: + class: PiwikTwigExtension\PiwikTwigExtension + public: false tags: - { name: twig.extension } + + wallabag.locale_listener: + class: Wallabag\CoreBundle\Event\Listener\LocaleListener + arguments: ["%kernel.default_locale%"] + tags: + - { name: kernel.event_subscriber } + + wallabag.user_locale_listener: + class: Wallabag\CoreBundle\Event\Listener\UserLocaleListener + arguments: ["@session"] + tags: + - { name: kernel.event_listener, event: security.interactive_login, method: onInteractiveLogin } + + craue_config_cache_provider: + class: Symfony\Component\Cache\Adapter\FilesystemAdapter + public: false + arguments: + - 'craue_config' + - 0 + - '%kernel.cache_dir%'