wallabag/app/config/services.yml

276 lines
9.2 KiB
YAML
Raw Normal View History

imports:
- { resource: services_rabbit.yml }
- { resource: services_redis.yml }
- { resource: parameters_addons.yml }
2015-01-22 08:30:07 +01:00
parameters:
2015-08-22 15:35:28 +02:00
lexik_form_filter.get_filter.doctrine_orm.class: Wallabag\CoreBundle\Event\Subscriber\CustomDoctrineORMSubscriber
2015-01-22 08:30:07 +01:00
services:
2022-08-27 19:26:16 +02:00
_defaults:
autowire: true
autoconfigure: true
public: true
Twig_Extensions_Extension_Text:
class: Twig_Extensions_Extension_Text
2015-09-29 23:11:27 +02:00
Wallabag\CoreBundle\Twig\WallabagExtension:
2015-09-29 23:11:27 +02:00
public: false
arguments:
2022-08-27 20:22:48 +02:00
$lifeTime: "%wallabag_core.cache_lifetime%"
$rootDir: "%kernel.root_dir%"
2015-10-01 16:28:38 +02:00
MatomoTwigExtension\MatomoTwigExtension:
2016-02-19 15:27:57 +01:00
public: false
Wallabag\CoreBundle\Event\Listener\LocaleListener:
2022-08-27 20:22:48 +02:00
arguments:
$defaultLocale: "%kernel.default_locale%"
2015-10-01 16:28:38 +02:00
Wallabag\CoreBundle\Event\Listener\UserLocaleListener:
2015-10-01 16:28:38 +02:00
tags:
- { name: kernel.event_listener, event: security.interactive_login, method: onInteractiveLogin }
2017-05-12 16:33:12 +02:00
craue_config_cache_provider:
class: Symfony\Component\Cache\Adapter\FilesystemAdapter
public: false
arguments:
2022-08-27 20:22:48 +02:00
$namespace: 'craue_config'
$defaultLifetime: 0
$directory: '%kernel.cache_dir%'
Wallabag\CoreBundle\Helper\DetectActiveTheme:
arguments:
2022-08-27 20:22:48 +02:00
$defaultTheme: "%wallabag_core.theme%"
# custom form type
Wallabag\CoreBundle\Form\Type\ConfigType:
arguments:
2022-08-27 20:22:48 +02:00
$themes: "%liip_theme.themes%"
$languages: "%wallabag_core.languages%"
2022-08-27 20:47:19 +02:00
Wallabag\CoreBundle\Form\Type\EntryFilterType: ~
Wallabag\CoreBundle\ParamConverter\UsernameFeedTokenConverter:
tags:
- { name: request.param_converter, converter: username_feed_token_converter }
Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber:
arguments:
2022-08-27 20:22:48 +02:00
$prefix: "%database_table_prefix%"
tags:
- { name: doctrine.event_subscriber }
Graby\Graby:
arguments:
2022-08-27 20:22:48 +02:00
$config:
error_message: '%wallabag_core.fetching_error_message%'
error_message_title: '%wallabag_core.fetching_error_message_title%'
calls:
- [ setLogger, [ "@logger" ] ]
tags:
- { name: monolog.logger, channel: graby }
Graby\SiteConfig\ConfigBuilder:
arguments:
2022-08-27 20:22:48 +02:00
$config: {}
wallabag_core.http_client:
alias: 'httplug.client.wallabag_core'
Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder:
tags:
- { name: monolog.logger, channel: graby }
# service alias override
bd_guzzle_site_authenticator.site_config_builder:
alias: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder
Wallabag\CoreBundle\Helper\HttpClientFactory:
arguments:
2022-08-27 20:22:48 +02:00
$restrictedAccess: '@=service(''craue_config'').get(''restricted_access'')'
calls:
- ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]]
Wallabag\CoreBundle\Helper\FileCookieJar:
arguments:
2022-08-27 20:22:48 +02:00
$cookieFile: "%kernel.cache_dir%/cookiejar.json"
Wallabag\CoreBundle\Helper\ContentProxy:
arguments:
2022-08-27 20:22:48 +02:00
$fetchingErrorMessage: '%wallabag_core.fetching_error_message%'
$storeArticleHeaders: '@=service(''craue_config'').get(''store_article_headers'')'
2022-08-27 20:22:48 +02:00
Wallabag\CoreBundle\Helper\TagsAssigner: ~
2022-08-27 20:22:48 +02:00
Wallabag\CoreBundle\Helper\RuleBasedTagger: ~
Wallabag\CoreBundle\Helper\RuleBasedIgnoreOriginProcessor: ~
# repository as a service
Wallabag\AnnotationBundle\Repository\AnnotationRepository: ~
Wallabag\ApiBundle\Repository\ClientRepository: ~
Wallabag\CoreBundle\Repository\ConfigRepository: ~
Wallabag\CoreBundle\Repository\EntryRepository: ~
Wallabag\CoreBundle\Repository\TagRepository: ~
Wallabag\CoreBundle\Repository\TaggingRuleRepository: ~
Wallabag\CoreBundle\Repository\SiteCredentialRepository: ~
Wallabag\CoreBundle\Repository\IgnoreOriginInstanceRuleRepository: ~
Wallabag\CoreBundle\Repository\IgnoreOriginUserRuleRepository: ~
Wallabag\CoreBundle\Helper\EntriesExport:
arguments:
2022-08-27 20:22:48 +02:00
$wallabagUrl: '%domain_name%'
$logoPath: web/img/appicon/apple-touch-icon-152.png
Wallabag\CoreBundle\Operator\PHP\Matches:
tags:
- { name: rulerz.operator, target: native, operator: matches }
Wallabag\CoreBundle\Operator\Doctrine\Matches:
tags:
- { name: rulerz.operator, target: doctrine, operator: matches, inline: true }
Wallabag\CoreBundle\Operator\PHP\NotMatches:
tags:
- { name: rulerz.operator, target: native, operator: notmatches }
Wallabag\CoreBundle\Operator\Doctrine\NotMatches:
tags:
- { name: rulerz.operator, target: doctrine, operator: notmatches, inline: true }
Wallabag\CoreBundle\Operator\PHP\PatternMatches:
tags:
- { name: rulerz.operator, target: native, operator: "~" }
2022-08-27 20:22:48 +02:00
Wallabag\CoreBundle\Helper\Redirect: ~
2022-08-27 20:22:48 +02:00
Wallabag\CoreBundle\Helper\PreparePagerForEntries: ~
Predis\Client:
arguments:
2022-08-27 20:22:48 +02:00
$parameters:
scheme: '%redis_scheme%'
host: '%redis_host%'
port: '%redis_port%'
path: '%redis_path%'
password: '%redis_password%'
Wallabag\CoreBundle\Controller\ExceptionController:
arguments:
2022-08-27 20:22:48 +02:00
$debug: '%kernel.debug%'
Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber:
tags:
- { name: doctrine.event_subscriber }
Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber:
arguments:
2022-08-27 20:22:48 +02:00
$enabled: '@=service(''craue_config'').get(''download_images_enabled'')'
Wallabag\CoreBundle\Helper\DownloadImages:
arguments:
2022-08-27 20:22:48 +02:00
$baseFolder: "%kernel.project_dir%/web/assets/images"
$wallabagUrl: '%domain_name%'
wallabag_core.entry.download_images.client:
alias: 'httplug.client.wallabag_core.entry.download_images'
Wallabag\CoreBundle\Helper\CryptoProxy:
arguments:
2022-08-27 20:22:48 +02:00
$encryptionKeyPath: "%wallabag_core.site_credentials.encryption_key_path%"
Wallabag\CoreBundle\Command\:
resource: ../../src/Wallabag/CoreBundle/Command/*
Wallabag\UserBundle\Mailer\AuthCodeMailer:
arguments:
2022-08-27 20:22:48 +02:00
$senderEmail: "%scheb_two_factor.email.sender_email%"
$senderName: "%scheb_two_factor.email.sender_name%"
$supportUrl: '@=service(''craue_config'').get(''wallabag_support_url'')'
$wallabagUrl: '%domain_name%'
Wallabag\UserBundle\EventListener\RegistrationListener:
arguments:
2022-08-27 20:22:48 +02:00
$registrationEnabled: '%fosuser_registration%'
2022-08-27 20:47:19 +02:00
Wallabag\UserBundle\EventListener\PasswordResettingListener: ~
Wallabag\UserBundle\Repository\UserRepository: ~
Wallabag\UserBundle\EventListener\CreateConfigListener:
arguments:
2022-08-27 20:22:48 +02:00
$theme: "%wallabag_core.theme%"
$itemsOnPage: "%wallabag_core.items_on_page%"
$feedLimit: "%wallabag_core.feed_limit%"
$language: "%wallabag_core.language%"
$readingSpeed: "%wallabag_core.reading_speed%"
$actionMarkAsRead: "%wallabag_core.action_mark_as_read%"
$listMode: "%wallabag_core.list_mode%"
Wallabag\UserBundle\EventListener\AuthenticationFailureListener:
tags:
- { name: kernel.event_listener, event: security.authentication.failure, method: onAuthenticationFailure }
2022-08-27 19:26:16 +02:00
Wallabag\ImportBundle\Import\ImportChain: ~
wallabag_import.pocket.client:
alias: 'httplug.client.wallabag_import.pocket.client'
Wallabag\ImportBundle\Import\PocketImport:
calls:
- [ setClient, [ "@wallabag_import.pocket.client" ] ]
tags:
- { name: wallabag_import.import, alias: pocket }
Wallabag\ImportBundle\Import\WallabagV1Import:
arguments:
2022-08-27 20:22:48 +02:00
$fetchingErrorMessageTitle: "%wallabag_core.fetching_error_message_title%"
$fetchingErrorMessage: "%wallabag_core.fetching_error_message%"
tags:
- { name: wallabag_import.import, alias: wallabag_v1 }
Wallabag\ImportBundle\Import\WallabagV2Import:
tags:
- { name: wallabag_import.import, alias: wallabag_v2 }
Wallabag\ImportBundle\Import\ElcuratorImport:
tags:
- { name: wallabag_import.import, alias: elcurator }
Wallabag\ImportBundle\Import\ReadabilityImport:
tags:
- { name: wallabag_import.import, alias: readability }
Wallabag\ImportBundle\Import\InstapaperImport:
tags:
- { name: wallabag_import.import, alias: instapaper }
Wallabag\ImportBundle\Import\PinboardImport:
tags:
- { name: wallabag_import.import, alias: pinboard }
Wallabag\ImportBundle\Import\DeliciousImport:
tags:
- { name: wallabag_import.import, alias: delicious }
Wallabag\ImportBundle\Import\FirefoxImport:
tags:
- { name: wallabag_import.import, alias: firefox }
Wallabag\ImportBundle\Import\ChromeImport:
tags:
- { name: wallabag_import.import, alias: chrome }
Wallabag\ImportBundle\Command\:
resource: ../../src/Wallabag/ImportBundle/Command/*