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 - "%sites_credentials%"
69 - { name: monolog.logger, channel: graby }
71 # service alias override
72 bd_guzzle_site_authenticator.site_config_builder:
73 alias: wallabag_core.guzzle_authenticator.config_builder
75 wallabag_core.guzzle.http_client_factory:
76 class: Wallabag\CoreBundle\Helper\HttpClientFactory
78 - "@wallabag_core.guzzle.cookie_jar"
79 - '@=service(''craue_config'').get(''restricted_access'')'
82 - ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]]
84 wallabag_core.guzzle.cookie_jar:
85 class: GuzzleHttp\Cookie\FileCookieJar
86 arguments: ["%kernel.cache_dir%/cookiejar.json"]
88 wallabag_core.content_proxy:
89 class: Wallabag\CoreBundle\Helper\ContentProxy
91 - "@wallabag_core.graby"
92 - "@wallabag_core.rule_based_tagger"
95 - '%wallabag_core.fetching_error_message%'
97 wallabag_core.tags_assigner:
98 class: Wallabag\CoreBundle\Helper\TagsAssigner
100 - "@wallabag_core.tag_repository"
102 wallabag_core.rule_based_tagger:
103 class: Wallabag\CoreBundle\Helper\RuleBasedTagger
106 - "@wallabag_core.tag_repository"
107 - "@wallabag_core.entry_repository"
110 # repository as a service
111 wallabag_core.entry_repository:
112 class: Wallabag\CoreBundle\Repository\EntryRepository
113 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
115 - WallabagCoreBundle:Entry
117 wallabag_core.tag_repository:
118 class: Wallabag\CoreBundle\Repository\TagRepository
119 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
121 - WallabagCoreBundle:Tag
123 wallabag_core.helper.entries_export:
124 class: Wallabag\CoreBundle\Helper\EntriesExport
126 - '@=service(''craue_config'').get(''wallabag_url'')'
127 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
129 wallabag.operator.array.matches:
130 class: Wallabag\CoreBundle\Operator\PHP\Matches
132 - { name: rulerz.operator, target: native, operator: matches }
134 wallabag.operator.doctrine.matches:
135 class: Wallabag\CoreBundle\Operator\Doctrine\Matches
137 - { name: rulerz.operator, target: doctrine, operator: matches, inline: true }
139 wallabag.operator.array.notmatches:
140 class: Wallabag\CoreBundle\Operator\PHP\NotMatches
142 - { name: rulerz.operator, target: native, operator: notmatches }
144 wallabag.operator.doctrine.notmatches:
145 class: Wallabag\CoreBundle\Operator\Doctrine\NotMatches
147 - { name: rulerz.operator, target: doctrine, operator: notmatches, inline: true }
149 wallabag_core.helper.redirect:
150 class: Wallabag\CoreBundle\Helper\Redirect
153 - "@security.token_storage"
155 wallabag_core.helper.prepare_pager_for_entries:
156 class: Wallabag\CoreBundle\Helper\PreparePagerForEntries
158 - "@security.token_storage"
161 wallabag_core.redis.client:
165 scheme: '%redis_scheme%'
169 password: '%redis_password%'
171 wallabag_core.exception_controller:
172 class: Wallabag\CoreBundle\Controller\ExceptionController
177 wallabag_core.subscriber.sqlite_cascade_delete:
178 class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber
182 - { name: doctrine.event_subscriber }
184 wallabag_core.subscriber.download_images:
185 class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber
187 - "@doctrine.orm.default_entity_manager"
188 - "@wallabag_core.entry.download_images"
189 - '@=service(''craue_config'').get(''download_images_enabled'')'
192 - { name: kernel.event_subscriber }
194 wallabag_core.entry.download_images:
195 class: Wallabag\CoreBundle\Helper\DownloadImages
197 - "@wallabag_core.entry.download_images.client"
198 - "%kernel.root_dir%/../web/assets/images"
199 - '@=service(''craue_config'').get(''wallabag_url'')'
202 wallabag_core.entry.download_images.client:
203 class: GuzzleHttp\Client