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 error_message_title: '%wallabag_core.fetching_error_message_title%'
45 - "@wallabag_core.guzzle.http_client"
46 - "@wallabag_core.graby.config_builder"
48 - [ setLogger, [ "@logger" ] ]
50 - { name: monolog.logger, channel: graby }
52 wallabag_core.graby.config_builder:
53 class: Graby\SiteConfig\ConfigBuilder
58 wallabag_core.guzzle.http_client:
59 class: GuzzleHttp\ClientInterface
60 factory: ["@wallabag_core.guzzle.http_client_factory", buildHttpClient]
62 wallabag_core.guzzle_authenticator.config_builder:
63 class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder
65 - "@wallabag_core.graby.config_builder"
66 - "@security.token_storage"
67 - "@wallabag_core.site_credential_repository"
70 - { name: monolog.logger, channel: graby }
72 # service alias override
73 bd_guzzle_site_authenticator.site_config_builder:
74 alias: wallabag_core.guzzle_authenticator.config_builder
76 wallabag_core.guzzle.http_client_factory:
77 class: Wallabag\CoreBundle\Helper\HttpClientFactory
79 - "@wallabag_core.guzzle.cookie_jar"
80 - '@=service(''craue_config'').get(''restricted_access'')'
83 - ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]]
85 wallabag_core.guzzle.cookie_jar:
86 class: GuzzleHttp\Cookie\FileCookieJar
87 arguments: ["%kernel.cache_dir%/cookiejar.json"]
89 wallabag_core.content_proxy:
90 class: Wallabag\CoreBundle\Helper\ContentProxy
92 - "@wallabag_core.graby"
93 - "@wallabag_core.rule_based_tagger"
96 - '%wallabag_core.fetching_error_message%'
98 wallabag_core.tags_assigner:
99 class: Wallabag\CoreBundle\Helper\TagsAssigner
101 - "@wallabag_core.tag_repository"
103 wallabag_core.rule_based_tagger:
104 class: Wallabag\CoreBundle\Helper\RuleBasedTagger
107 - "@wallabag_core.tag_repository"
108 - "@wallabag_core.entry_repository"
111 # repository as a service
112 wallabag_core.entry_repository:
113 class: Wallabag\CoreBundle\Repository\EntryRepository
114 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
116 - WallabagCoreBundle:Entry
118 wallabag_core.tag_repository:
119 class: Wallabag\CoreBundle\Repository\TagRepository
120 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
122 - WallabagCoreBundle:Tag
124 wallabag_core.site_credential_repository:
125 class: Wallabag\CoreBundle\Repository\SiteCredentialRepository
126 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
128 - WallabagCoreBundle:SiteCredential
130 - [ setCrypto, [ "@wallabag_core.helper.crypto_proxy" ] ]
132 wallabag_core.notification_repository:
133 class: Wallabag\CoreBundle\Repository\NotificationRepository
134 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
136 - WallabagCoreBundle:Notification
138 wallabag_core.helper.entries_export:
139 class: Wallabag\CoreBundle\Helper\EntriesExport
142 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
144 wallabag.operator.array.matches:
145 class: Wallabag\CoreBundle\Operator\PHP\Matches
147 - { name: rulerz.operator, target: native, operator: matches }
149 wallabag.operator.doctrine.matches:
150 class: Wallabag\CoreBundle\Operator\Doctrine\Matches
152 - { name: rulerz.operator, target: doctrine, operator: matches, inline: true }
154 wallabag.operator.array.notmatches:
155 class: Wallabag\CoreBundle\Operator\PHP\NotMatches
157 - { name: rulerz.operator, target: native, operator: notmatches }
159 wallabag.operator.doctrine.notmatches:
160 class: Wallabag\CoreBundle\Operator\Doctrine\NotMatches
162 - { name: rulerz.operator, target: doctrine, operator: notmatches, inline: true }
164 wallabag_core.helper.redirect:
165 class: Wallabag\CoreBundle\Helper\Redirect
168 - "@security.token_storage"
170 wallabag_core.helper.prepare_pager_for_entries:
171 class: Wallabag\CoreBundle\Helper\PreparePagerForEntries
173 - "@security.token_storage"
176 wallabag_core.redis.client:
180 scheme: '%redis_scheme%'
184 password: '%redis_password%'
186 wallabag_core.exception_controller:
187 class: Wallabag\CoreBundle\Controller\ExceptionController
192 wallabag_core.subscriber.sqlite_cascade_delete:
193 class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber
197 - { name: doctrine.event_subscriber }
199 wallabag_core.subscriber.download_images:
200 class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber
202 - "@doctrine.orm.default_entity_manager"
203 - "@wallabag_core.entry.download_images"
204 - '@=service(''craue_config'').get(''download_images_enabled'')'
207 - { name: kernel.event_subscriber }
209 wallabag_core.entry.download_images:
210 class: Wallabag\CoreBundle\Helper\DownloadImages
212 - "@wallabag_core.entry.download_images.client"
213 - "%kernel.root_dir%/../web/assets/images"
217 wallabag_core.entry.download_images.client:
218 class: GuzzleHttp\Client
220 wallabag_core.helper.crypto_proxy:
221 class: Wallabag\CoreBundle\Helper\CryptoProxy
223 - "%wallabag_core.site_credentials.encryption_key_path%"
226 wallabag_core.activity.subscriber:
227 class: Wallabag\CoreBundle\Event\Activity\ActivitySubscriber
229 - "@doctrine.orm.default_entity_manager"
232 - { name: kernel.event_subscriber }