2 wallabag_core.helper.detect_active_theme:
3 class: Wallabag\CoreBundle\Helper\DetectActiveTheme
5 - "@security.token_storage"
6 - "%wallabag_core.theme%"
9 wallabag_core.form.type.config:
10 class: Wallabag\CoreBundle\Form\Type\ConfigType
12 - "%liip_theme.themes%"
13 - "%wallabag_core.languages%"
17 wallabag_core.filter.type.entry:
18 class: Wallabag\CoreBundle\Form\Type\EntryFilterType
20 - "@wallabag_core.entry_repository"
21 - "@security.token_storage"
25 wallabag_core.param_converter.username_rsstoken_converter:
26 class: Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter
28 - { name: request.param_converter, converter: username_rsstoken_converter }
32 wallabag_core.subscriber.table_prefix:
33 class: Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber
35 - "%database_table_prefix%"
37 - { name: doctrine.event_subscriber }
43 error_message: '%wallabag_core.fetching_error_message%'
44 - "@wallabag_core.guzzle.http_client"
45 - "@wallabag_core.graby.config_builder"
47 - [ setLogger, [ "@logger" ] ]
49 - { name: monolog.logger, channel: graby }
51 wallabag_core.graby.config_builder:
52 class: Graby\SiteConfig\ConfigBuilder
57 wallabag_core.guzzle.http_client:
58 class: GuzzleHttp\ClientInterface
59 factory: ["@wallabag_core.guzzle.http_client_factory", buildHttpClient]
61 wallabag_core.guzzle_authenticator.config_builder:
62 class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder
64 - "@wallabag_core.graby.config_builder"
65 - "%sites_credentials%"
68 - { name: monolog.logger, channel: graby }
70 # service alias override
71 bd_guzzle_site_authenticator.site_config_builder:
72 alias: wallabag_core.guzzle_authenticator.config_builder
74 wallabag_core.guzzle.http_client_factory:
75 class: Wallabag\CoreBundle\Helper\HttpClientFactory
77 - "@wallabag_core.guzzle.cookie_jar"
78 - '@=service(''craue_config'').get(''restricted_access'')'
81 - ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]]
83 wallabag_core.guzzle.cookie_jar:
84 class: GuzzleHttp\Cookie\FileCookieJar
85 arguments: ["%kernel.cache_dir%/cookiejar.json"]
87 wallabag_core.content_proxy:
88 class: Wallabag\CoreBundle\Helper\ContentProxy
90 - "@wallabag_core.graby"
91 - "@wallabag_core.rule_based_tagger"
93 - '%wallabag_core.fetching_error_message%'
95 wallabag_core.tags_assigner:
96 class: Wallabag\CoreBundle\Helper\TagsAssigner
98 - "@wallabag_core.tag_repository"
100 wallabag_core.rule_based_tagger:
101 class: Wallabag\CoreBundle\Helper\RuleBasedTagger
104 - "@wallabag_core.tag_repository"
105 - "@wallabag_core.entry_repository"
108 # repository as a service
109 wallabag_core.entry_repository:
110 class: Wallabag\CoreBundle\Repository\EntryRepository
111 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
113 - WallabagCoreBundle:Entry
115 wallabag_core.tag_repository:
116 class: Wallabag\CoreBundle\Repository\TagRepository
117 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
119 - WallabagCoreBundle:Tag
121 wallabag_core.helper.entries_export:
122 class: Wallabag\CoreBundle\Helper\EntriesExport
124 - '@=service(''craue_config'').get(''wallabag_url'')'
125 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
127 wallabag.operator.array.matches:
128 class: Wallabag\CoreBundle\Operator\PHP\Matches
130 - { name: rulerz.operator, target: native, operator: matches }
132 wallabag.operator.doctrine.matches:
133 class: Wallabag\CoreBundle\Operator\Doctrine\Matches
135 - { name: rulerz.operator, target: doctrine, operator: matches, inline: true }
137 wallabag.operator.array.notmatches:
138 class: Wallabag\CoreBundle\Operator\PHP\NotMatches
140 - { name: rulerz.operator, target: native, operator: notmatches }
142 wallabag.operator.doctrine.notmatches:
143 class: Wallabag\CoreBundle\Operator\Doctrine\NotMatches
145 - { name: rulerz.operator, target: doctrine, operator: notmatches, inline: true }
147 wallabag_core.helper.redirect:
148 class: Wallabag\CoreBundle\Helper\Redirect
151 - "@security.token_storage"
153 wallabag_core.helper.prepare_pager_for_entries:
154 class: Wallabag\CoreBundle\Helper\PreparePagerForEntries
156 - "@security.token_storage"
159 wallabag_core.redis.client:
163 scheme: '%redis_scheme%'
167 password: '%redis_password%'
169 wallabag_core.exception_controller:
170 class: Wallabag\CoreBundle\Controller\ExceptionController
175 wallabag_core.subscriber.sqlite_cascade_delete:
176 class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber
180 - { name: doctrine.event_subscriber }
182 wallabag_core.subscriber.download_images:
183 class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber
185 - "@doctrine.orm.default_entity_manager"
186 - "@wallabag_core.entry.download_images"
187 - '@=service(''craue_config'').get(''download_images_enabled'')'
190 - { name: kernel.event_subscriber }
192 wallabag_core.entry.download_images:
193 class: Wallabag\CoreBundle\Helper\DownloadImages
195 - "@wallabag_core.entry.download_images.client"
196 - "%kernel.root_dir%/../web/assets/images"
197 - '@=service(''craue_config'').get(''wallabag_url'')'
200 wallabag_core.entry.download_images.client:
201 class: GuzzleHttp\Client