wallabag/app/config/services.yml

344 lines
13 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:
spiriit_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
bind:
$projectDir: '%kernel.project_dir%'
$debug: '%kernel.debug%'
$defaultLocale: '%kernel.default_locale%'
$wallabagUrl: '%domain_name%'
$tablePrefix: "%database_table_prefix%"
$encryptionKeyPath: "%wallabag_core.site_credentials.encryption_key_path%"
$fetchingErrorMessageTitle: "%wallabag_core.fetching_error_message_title%"
$fetchingErrorMessage: '%wallabag_core.fetching_error_message%'
$languages: '%wallabag_core.languages%'
$lifeTime: '%wallabag_core.cache_lifetime%'
$cookieFile: "%kernel.cache_dir%/cookiejar.json"
$logoPath: 'web/img/appicon/apple-touch-icon-152.png'
$registrationEnabled: '%fosuser_registration%'
$restrictedAccess: '@=service(''craue_config'').get(''restricted_access'')'
$senderEmail: "%scheb_two_factor.email.sender_email%"
$senderName: "%scheb_two_factor.email.sender_name%"
$storeArticleHeaders: '@=service(''craue_config'').get(''store_article_headers'')'
$supportUrl: '@=service(''craue_config'').get(''wallabag_support_url'')'
$fonts: '%wallabag_core.fonts%'
2022-08-27 19:26:16 +02:00
2022-08-28 01:07:59 +02:00
Wallabag\CoreBundle\:
resource: '../../src/Wallabag/CoreBundle/*'
exclude: ['../../src/Wallabag/CoreBundle/{Consumer,Controller,Entity,ExpressionLanguage,DataFixtures,Redis}', '../../src/Wallabag/CoreBundle/Event/*Event.php']
2022-08-28 01:07:59 +02:00
# controllers are imported separately to make sure services can be injected
# as action arguments even if you don't extend any base controller class
Wallabag\CoreBundle\Controller\:
resource: '../../src/Wallabag/CoreBundle/Controller/'
tags: ['controller.service_arguments']
# inject alias service into controllers
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\ChromeController:
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_chrome_producer'
$redisProducer: '@wallabag_core.producer.redis.chrome'
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\DeliciousController:
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_delicious_producer'
$redisProducer: '@wallabag_core.producer.redis.delicious'
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\ElcuratorController:
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_elcurator_producer'
$redisProducer: '@wallabag_core.producer.redis.elcurator'
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\FirefoxController:
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_firefox_producer'
$redisProducer: '@wallabag_core.producer.redis.firefox'
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\InstapaperController:
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_instapaper_producer'
$redisProducer: '@wallabag_core.producer.redis.instapaper'
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\PinboardController:
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_pinboard_producer'
$redisProducer: '@wallabag_core.producer.redis.pinboard'
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\PocketController:
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_pocket_producer'
$redisProducer: '@wallabag_core.producer.redis.pocket'
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\ReadabilityController:
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_readability_producer'
$redisProducer: '@wallabag_core.producer.redis.readability'
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\WallabagV1Controller:
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_wallabag_v1_producer'
$redisProducer: '@wallabag_core.producer.redis.wallabag_v1'
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\WallabagV2Controller:
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_wallabag_v2_producer'
$redisProducer: '@wallabag_core.producer.redis.wallabag_v2'
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\ShaarliController:
2023-07-26 12:49:30 +02:00
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_shaarli_producer'
$redisProducer: '@wallabag_core.producer.redis.shaarli'
2023-07-26 12:49:30 +02:00
2023-12-31 12:25:57 +01:00
Wallabag\CoreBundle\Controller\Import\PocketHtmlController:
2023-07-26 12:49:30 +02:00
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_pocket_html_producer'
$redisProducer: '@wallabag_core.producer.redis.pocket_html'
2023-07-26 12:49:30 +02:00
2022-08-28 02:01:46 +02:00
Doctrine\DBAL\Connection:
alias: doctrine.dbal.default_connection
Doctrine\ORM\EntityManagerInterface:
alias: doctrine.orm.entity_manager
Doctrine\Persistence\ManagerRegistry:
alias: doctrine
Craue\ConfigBundle\Util\Config:
alias: craue_config
JMS\Serializer\SerializerInterface:
alias: jms_serializer
Spiriit\Bundle\FormFilterBundle\Filter\FilterBuilderUpdaterInterface:
alias: spiriit_form_filter.query_builder_updater
2022-08-28 02:01:46 +02:00
Scheb\TwoFactorBundle\Security\TwoFactor\Provider\Google\GoogleAuthenticatorInterface:
alias: scheb_two_factor.security.google_authenticator
Symfony\Component\HttpFoundation\Session\SessionInterface:
alias: session
Symfony\Component\EventDispatcher\EventDispatcherInterface:
alias: event_dispatcher
Symfony\Component\Form\FormFactoryInterface:
alias: form.factory
Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface:
alias: security.token_storage
Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface:
alias: security.authorization_checker
Symfony\Component\Translation\TranslatorInterface:
alias: translator
Symfony\Component\Validator\Validator\ValidatorInterface:
alias: validator
FOS\UserBundle\Model\UserManagerInterface:
alias: fos_user.user_manager
MatomoTwigExtension\MatomoTwigExtension:
2016-02-19 15:27:57 +01:00
public: false
ScssPhp\ScssPhp\Compiler:
public: false
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\ParamConverter\UsernameFeedTokenConverter:
tags:
- { name: request.param_converter, converter: username_feed_token_converter }
Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber:
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\SiteConfig\GrabySiteConfigBuilder:
tags:
- { name: monolog.logger, channel: graby }
# service alias override
Wallabag\CoreBundle\SiteConfig\SiteConfigBuilder:
alias: Wallabag\CoreBundle\SiteConfig\GrabySiteConfigBuilder
2022-11-14 23:11:46 +01:00
GuzzleHttp\Cookie\CookieJar:
alias: 'Wallabag\CoreBundle\Helper\FileCookieJar'
Wallabag\CoreBundle\Helper\HttpClientFactory:
calls:
- ['addSubscriber', ['@Wallabag\CoreBundle\Guzzle\AuthenticatorSubscriber']]
- ['addSubscriber', ['@Wallabag\CoreBundle\Guzzle\FixupMondeDiplomatiqueUriSubscriber']]
RulerZ\RulerZ:
alias: rulerz
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: "~" }
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\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"
Wallabag\CoreBundle\Command\InstallCommand:
arguments:
$databaseDriver: '%database_driver%'
$databaseName: '%database_name%'
$defaultSettings: '%wallabag_core.default_internal_settings%'
$defaultIgnoreOriginInstanceRules: '%wallabag_core.default_ignore_origin_instance_rules%'
2023-12-30 23:44:10 +01:00
Wallabag\CoreBundle\Mailer\UserMailer:
2022-12-15 12:02:52 +01:00
arguments:
$parameters:
template:
confirmation: '%fos_user.registration.confirmation.template%'
resetting: '%fos_user.resetting.email.template%'
from_email:
confirmation: '%fos_user.registration.confirmation.from_email%'
resetting: '%fos_user.resetting.email.from_email%'
2023-12-30 23:54:25 +01:00
Wallabag\CoreBundle\Event\Listener\CreateConfigListener:
arguments:
2022-08-27 20:22:48 +02:00
$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%"
$displayThumbnails: "%wallabag_core.display_thumbnails%"
2023-12-30 23:54:25 +01:00
Wallabag\CoreBundle\Event\Listener\AuthenticationFailureListener:
tags:
- { name: kernel.event_listener, event: security.authentication.failure, method: onAuthenticationFailure }
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\PocketImport:
calls:
2024-02-08 23:23:11 +01:00
- [ setClient, [ '@Symfony\Contracts\HttpClient\HttpClientInterface $pocketClient' ] ]
tags:
- { name: wallabag_core.import, alias: pocket }
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\WallabagV1Import:
tags:
- { name: wallabag_core.import, alias: wallabag_v1 }
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\WallabagV2Import:
tags:
- { name: wallabag_core.import, alias: wallabag_v2 }
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\ElcuratorImport:
tags:
- { name: wallabag_core.import, alias: elcurator }
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\ReadabilityImport:
tags:
- { name: wallabag_core.import, alias: readability }
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\InstapaperImport:
tags:
- { name: wallabag_core.import, alias: instapaper }
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\PinboardImport:
tags:
- { name: wallabag_core.import, alias: pinboard }
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\DeliciousImport:
tags:
- { name: wallabag_core.import, alias: delicious }
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\FirefoxImport:
tags:
- { name: wallabag_core.import, alias: firefox }
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\ChromeImport:
tags:
- { name: wallabag_core.import, alias: chrome }
2022-12-14 14:36:29 +01:00
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\ShaarliImport:
2023-07-26 12:49:30 +02:00
tags:
- { name: wallabag_core.import, alias: shaarli }
2023-07-26 12:49:30 +02:00
2023-12-31 18:21:09 +01:00
Wallabag\CoreBundle\Import\PocketHtmlImport:
2023-07-26 12:49:30 +02:00
tags:
- { name: wallabag_core.import, alias: pocket_html }
2023-07-26 12:49:30 +02:00
2022-12-14 14:36:29 +01:00
# to factorize the proximity and bypass translation for prev & next
pagerfanta.view.default_wallabag:
class: Pagerfanta\View\OptionableView
arguments:
- '@pagerfanta.view.twitter_bootstrap'
- { proximity: 1, prev_message: "<", next_message: ">" }
public: false
tags:
- { name: pagerfanta.view, alias: default_wallabag }