Files
wallabag/src/Wallabag/CoreBundle/Resources/config/services.yml

247 lines
8.7 KiB
YAML
Raw Normal View History

2015-02-09 22:54:29 +01:00
services:
wallabag_core.helper.detect_active_theme:
class: Wallabag\CoreBundle\Helper\DetectActiveTheme
arguments:
- "@security.token_storage"
- "%wallabag_core.theme%"
2015-03-07 23:25:36 +01:00
# custom form type
Wallabag\CoreBundle\Form\Type\ConfigType:
class: Wallabag\CoreBundle\Form\Type\ConfigType
arguments:
- "%liip_theme.themes%"
- "%wallabag_core.languages%"
tags:
- { name: form.type }
2015-03-28 14:27:45 +01:00
Wallabag\CoreBundle\Form\Type\EntryFilterType:
class: Wallabag\CoreBundle\Form\Type\EntryFilterType
arguments:
- "@wallabag_core.entry_repository"
- "@security.token_storage"
tags:
- { name: form.type }
wallabag_core.param_converter.username_feed_token_converter:
class: Wallabag\CoreBundle\ParamConverter\UsernameFeedTokenConverter
2015-03-28 14:27:45 +01:00
tags:
- { name: request.param_converter, converter: username_feed_token_converter }
2015-03-28 14:27:45 +01:00
arguments:
- "@doctrine"
2015-03-28 11:29:19 +01:00
wallabag_core.subscriber.table_prefix:
class: Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber
arguments:
- "%database_table_prefix%"
tags:
- { name: doctrine.event_subscriber }
2015-08-24 12:27:17 +02:00
Graby\Graby:
2015-08-24 12:27:17 +02:00
class: Graby\Graby
arguments:
-
error_message: '%wallabag_core.fetching_error_message%'
error_message_title: '%wallabag_core.fetching_error_message_title%'
2017-10-24 22:55:40 +02:00
- "@wallabag_core.http_client"
- '@Graby\SiteConfig\ConfigBuilder'
2015-10-24 10:53:55 +02:00
calls:
- [ setLogger, [ "@logger" ] ]
2015-10-24 10:53:55 +02:00
tags:
- { name: monolog.logger, channel: graby }
Graby\SiteConfig\ConfigBuilder:
class: Graby\SiteConfig\ConfigBuilder
arguments:
- {}
- "@logger"
2017-10-24 22:55:40 +02:00
wallabag_core.http_client:
alias: 'httplug.client.wallabag_core'
wallabag_core.guzzle_authenticator.config_builder:
class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder
arguments:
- '@Graby\SiteConfig\ConfigBuilder'
- "@security.token_storage"
- "@wallabag_core.site_credential_repository"
- '@logger'
tags:
- { name: monolog.logger, channel: graby }
# service alias override
bd_guzzle_site_authenticator.site_config_builder:
alias: wallabag_core.guzzle_authenticator.config_builder
Wallabag\CoreBundle\Helper\HttpClientFactory:
class: Wallabag\CoreBundle\Helper\HttpClientFactory
arguments:
- '@Wallabag\CoreBundle\Helper\FileCookieJar'
- '@=service(''craue_config'').get(''restricted_access'')'
- '@logger'
calls:
- ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]]
Wallabag\CoreBundle\Helper\FileCookieJar:
class: Wallabag\CoreBundle\Helper\FileCookieJar
2019-07-24 16:07:38 +02:00
arguments:
- "@logger"
- "%kernel.cache_dir%/cookiejar.json"
Wallabag\CoreBundle\Helper\ContentProxy:
class: Wallabag\CoreBundle\Helper\ContentProxy
arguments:
- '@Graby\Graby'
- '@Wallabag\CoreBundle\Helper\RuleBasedTagger'
- '@Wallabag\CoreBundle\Helper\RuleBasedIgnoreOriginProcessor'
- "@validator"
- "@logger"
- '%wallabag_core.fetching_error_message%'
- '@=service(''craue_config'').get(''store_article_headers'')'
2015-10-11 16:54:21 +02:00
Wallabag\CoreBundle\Helper\TagsAssigner:
class: Wallabag\CoreBundle\Helper\TagsAssigner
arguments:
- "@wallabag_core.tag_repository"
Wallabag\CoreBundle\Helper\RuleBasedTagger:
2015-10-11 16:54:21 +02:00
class: Wallabag\CoreBundle\Helper\RuleBasedTagger
arguments:
- "@rulerz"
- "@wallabag_core.tag_repository"
- "@wallabag_core.entry_repository"
- "@logger"
Wallabag\CoreBundle\Helper\RuleBasedIgnoreOriginProcessor:
class: Wallabag\CoreBundle\Helper\RuleBasedIgnoreOriginProcessor
arguments:
- "@rulerz"
- "@logger"
- "@wallabag_core.ignore_origin_instance_rule_repository"
# repository as a service
wallabag_core.entry_repository:
class: Wallabag\CoreBundle\Repository\EntryRepository
factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
arguments:
- WallabagCoreBundle:Entry
2015-10-11 16:54:21 +02:00
wallabag_core.tag_repository:
class: Wallabag\CoreBundle\Repository\TagRepository
factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
2015-10-11 16:54:21 +02:00
arguments:
- WallabagCoreBundle:Tag
wallabag_core.site_credential_repository:
class: Wallabag\CoreBundle\Repository\SiteCredentialRepository
factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
arguments:
- WallabagCoreBundle:SiteCredential
2017-06-11 23:05:19 +02:00
calls:
- [ setCrypto, [ '@Wallabag\CoreBundle\Helper\CryptoProxy' ] ]
wallabag_core.ignore_origin_instance_rule_repository:
class: Wallabag\CoreBundle\Repository\IgnoreOriginInstanceRuleRepository
factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
arguments:
- WallabagCoreBundle:IgnoreOriginInstanceRule
Wallabag\CoreBundle\Helper\EntriesExport:
class: Wallabag\CoreBundle\Helper\EntriesExport
arguments:
2017-10-08 11:03:32 +02:00
- "@translator"
- '%domain_name%'
2020-11-27 10:51:31 +01:00
- web/img/appicon/apple-touch-icon-152.png
2021-08-31 09:22:31 +02:00
- "@security.token_storage"
2015-11-13 14:37:58 +01:00
wallabag.operator.array.matches:
class: Wallabag\CoreBundle\Operator\PHP\Matches
tags:
2017-02-05 18:02:09 +01:00
- { name: rulerz.operator, target: native, operator: matches }
2015-11-13 14:37:58 +01:00
wallabag.operator.doctrine.matches:
class: Wallabag\CoreBundle\Operator\Doctrine\Matches
tags:
2017-02-05 18:02:09 +01:00
- { name: rulerz.operator, target: doctrine, operator: matches, inline: true }
wallabag.operator.array.notmatches:
class: Wallabag\CoreBundle\Operator\PHP\NotMatches
tags:
- { name: rulerz.operator, target: native, operator: notmatches }
wallabag.operator.doctrine.notmatches:
class: Wallabag\CoreBundle\Operator\Doctrine\NotMatches
tags:
- { name: rulerz.operator, target: doctrine, operator: notmatches, inline: true }
wallabag.operator.array.pattern_matches:
class: Wallabag\CoreBundle\Operator\PHP\PatternMatches
tags:
- { name: rulerz.operator, target: native, operator: "~" }
Wallabag\CoreBundle\Helper\Redirect:
class: Wallabag\CoreBundle\Helper\Redirect
arguments:
- "@router"
- "@security.token_storage"
2016-04-14 15:03:22 +02:00
Wallabag\CoreBundle\Helper\PreparePagerForEntries:
2016-04-14 15:03:22 +02:00
class: Wallabag\CoreBundle\Helper\PreparePagerForEntries
arguments:
- "@security.token_storage"
- "@router"
wallabag_core.redis.client:
class: Predis\Client
arguments:
-
scheme: '%redis_scheme%'
host: '%redis_host%'
port: '%redis_port%'
path: '%redis_path%'
2016-11-20 20:23:30 +01:00
password: '%redis_password%'
wallabag_core.exception_controller:
class: Wallabag\CoreBundle\Controller\ExceptionController
public: true
arguments:
- '@twig'
- '%kernel.debug%'
wallabag_core.subscriber.sqlite_cascade_delete:
class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber
arguments:
- "@doctrine"
tags:
- { name: doctrine.event_subscriber }
2016-10-30 10:48:29 +01:00
wallabag_core.subscriber.download_images:
class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber
arguments:
- "@doctrine.orm.default_entity_manager"
- '@Wallabag\CoreBundle\Helper\DownloadImages'
- '@=service(''craue_config'').get(''download_images_enabled'')'
2016-10-30 10:48:29 +01:00
- "@logger"
tags:
- { name: kernel.event_subscriber }
2016-10-30 10:48:29 +01:00
Wallabag\CoreBundle\Helper\DownloadImages:
2016-10-30 10:48:29 +01:00
class: Wallabag\CoreBundle\Helper\DownloadImages
arguments:
- "@wallabag_core.entry.download_images.client"
- "%kernel.project_dir%/web/assets/images"
2017-06-08 19:15:33 +02:00
- '%domain_name%'
2016-10-30 10:48:29 +01:00
- "@logger"
wallabag_core.entry.download_images.client:
2017-10-24 22:55:40 +02:00
alias: 'httplug.client.wallabag_core.entry.download_images'
2017-06-11 23:05:19 +02:00
Wallabag\CoreBundle\Helper\CryptoProxy:
2017-06-11 23:05:19 +02:00
class: Wallabag\CoreBundle\Helper\CryptoProxy
arguments:
- "%wallabag_core.site_credentials.encryption_key_path%"
- "@logger"
2022-04-24 17:20:27 +02:00
Wallabag\CoreBundle\Command\:
resource: ../../Command/*
autoconfigure: true