X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2Fconfig%2Fservices.yml;h=80d6c1a1ade63fc88fe028a3ee5cd1137737d5cc;hb=c89d35e851d26b78f89bd7ece5e3eaa109c8cac0;hp=b3ec7c513317e690f0899ab613e975fa4c2bd4c6;hpb=7083d183b9df11f350be0d7039f5f0e33536b94b;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/config/services.yml b/app/config/services.yml index b3ec7c51..80d6c1a1 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: @@ -12,3 +7,26 @@ services: class: Doctrine\Common\Cache\FilesystemCache arguments: - %kernel.cache_dir%/doctrine/metadata + + twig.extension.text: + class: Twig_Extensions_Extension_Text + tags: + - { name: twig.extension } + + wallabag.twig_extension: + class: Wallabag\CoreBundle\Twig\WallabagExtension + 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 }