X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2Fconfig%2Fservices.yml;h=e0683ffc7256369109b9e6bed67ed188c438e1c9;hb=5bc2da5628afe24525ce68cb840ea6c1d4bf951d;hp=965bc3195e68d69924753ef7929a85b15526d30d;hpb=24429857d8a431cd20077c5c0c3db81e2fedb1ac;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/config/services.yml b/app/config/services.yml index 965bc319..e0683ffc 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -1,9 +1,4 @@ -# Learn more about services, parameters and containers at -# http://symfony.com/doc/current/book/service_container.html parameters: - security.authentication.provider.dao.class: Wallabag\CoreBundle\Security\Authentication\Provider\WallabagAuthenticationProvider - security.encoder.digest.class: Wallabag\CoreBundle\Security\Authentication\Encoder\WallabagPasswordEncoder - security.validator.user_password.class: Wallabag\CoreBundle\Security\Validator\WallabagUserPasswordValidator lexik_form_filter.get_filter.doctrine_orm.class: Wallabag\CoreBundle\Event\Subscriber\CustomDoctrineORMSubscriber services: @@ -23,3 +18,21 @@ services: public: false tags: - { name: twig.extension } + + wallabag.twig_piwik_extension: + class: PiwikTwigExtension\PiwikTwigExtension + public: false + tags: + - { name: twig.extension } + + wallabag.locale_listener: + class: Wallabag\CoreBundle\EventListener\LocaleListener + arguments: ["%kernel.default_locale%"] + tags: + - { name: kernel.event_subscriber } + + wallabag.user_locale_listener: + class: Wallabag\CoreBundle\EventListener\UserLocaleListener + arguments: ["@session"] + tags: + - { name: kernel.event_listener, event: security.interactive_login, method: onInteractiveLogin }