X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2Fconfig%2Fservices.yml;h=c2c867cf04dde5dc88749bf9b79172403c214a79;hb=d9a68f6ced3f510e5a52d5f857ca9c19aed8924b;hp=af22d3818cd7880c02c7ac8f67cbd610992b9242;hpb=bdf2add2e80dc52a02113c50636b5f887639b31a;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/config/services.yml b/app/config/services.yml index af22d381..c2c867cf 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -1,13 +1,47 @@ -# 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: - # used for tests - filesystem_cache: - class: Doctrine\Common\Cache\FilesystemCache + twig.extension.text: + class: Twig_Extensions_Extension_Text + tags: + - { name: twig.extension } + + 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" + - "%kernel.root_dir%" + 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: - - %kernel.cache_dir%/doctrine/metadata + - 'craue_config' + - 0 + - '%kernel.cache_dir%'