]>
Commit | Line | Data |
---|---|---|
7ffb1e80 | 1 | services: |
32da2a70 J |
2 | wallabag_core.helper.detect_active_theme: |
3 | class: Wallabag\CoreBundle\Helper\DetectActiveTheme | |
4 | arguments: | |
619cc453 | 5 | - "@security.token_storage" |
624a7c6d | 6 | - "%wallabag_core.theme%" |
32da2a70 | 7 | |
6894d48e | 8 | # custom form type |
32da2a70 J |
9 | wallabag_core.form.type.config: |
10 | class: Wallabag\CoreBundle\Form\Type\ConfigType | |
11 | arguments: | |
624a7c6d NL |
12 | - "%liip_theme.themes%" |
13 | - "%wallabag_core.languages%" | |
32da2a70 | 14 | tags: |
5c895a7f | 15 | - { name: form.type } |
0c83fd59 | 16 | |
1d76102a | 17 | wallabag_core.filter.type.entry: |
b0b893ea | 18 | class: Wallabag\CoreBundle\Form\Type\EntryFilterType |
1d76102a JB |
19 | arguments: |
20 | - "@wallabag_core.entry_repository" | |
21 | - "@security.token_storage" | |
22 | tags: | |
23 | - { name: form.type } | |
24 | ||
19c407f2 NL |
25 | wallabag_core.sort.type.entry: |
26 | class: Wallabag\CoreBundle\Form\Type\EntrySortType | |
27 | arguments: | |
28 | - "@security.token_storage" | |
29 | tags: | |
30 | - { name: form.type } | |
31 | ||
531c8d0a TC |
32 | wallabag_core.param_converter.username_feed_token_converter: |
33 | class: Wallabag\CoreBundle\ParamConverter\UsernameFeedTokenConverter | |
0c83fd59 | 34 | tags: |
531c8d0a | 35 | - { name: request.param_converter, converter: username_feed_token_converter } |
0c83fd59 | 36 | arguments: |
619cc453 | 37 | - "@doctrine" |
164bd801 | 38 | |
ac8cf632 | 39 | wallabag_core.subscriber.table_prefix: |
535bfcbe | 40 | class: Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber |
772d8c4b | 41 | arguments: |
624a7c6d | 42 | - "%database_table_prefix%" |
bd0f3d32 JB |
43 | tags: |
44 | - { name: doctrine.event_subscriber } | |
fad31615 JB |
45 | |
46 | wallabag_core.graby: | |
47 | class: Graby\Graby | |
558d9aab | 48 | arguments: |
e71c376d | 49 | - |
2297d60f | 50 | error_message: '%wallabag_core.fetching_error_message%' |
1c5da417 | 51 | error_message_title: '%wallabag_core.fetching_error_message_title%' |
bf9ace06 | 52 | - "@wallabag_core.http_client" |
7aab0ecf | 53 | - "@wallabag_core.graby.config_builder" |
c929c88f | 54 | calls: |
619cc453 | 55 | - [ setLogger, [ "@logger" ] ] |
c929c88f JB |
56 | tags: |
57 | - { name: monolog.logger, channel: graby } | |
558d9aab | 58 | |
7aab0ecf BD |
59 | wallabag_core.graby.config_builder: |
60 | class: Graby\SiteConfig\ConfigBuilder | |
61 | arguments: | |
62 | - {} | |
63 | - "@logger" | |
64 | ||
bf9ace06 | 65 | wallabag_core.http_client: |
66 | alias: 'httplug.client.wallabag_core' | |
7aab0ecf BD |
67 | |
68 | wallabag_core.guzzle_authenticator.config_builder: | |
69 | class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder | |
70 | arguments: | |
71 | - "@wallabag_core.graby.config_builder" | |
b8427f22 | 72 | - "@security.token_storage" |
5a9bc007 | 73 | - "@wallabag_core.site_credential_repository" |
94b232bb JB |
74 | - '@logger' |
75 | tags: | |
76 | - { name: monolog.logger, channel: graby } | |
7aab0ecf BD |
77 | |
78 | # service alias override | |
79 | bd_guzzle_site_authenticator.site_config_builder: | |
80 | alias: wallabag_core.guzzle_authenticator.config_builder | |
81 | ||
bf9ace06 | 82 | wallabag_core.http_client_factory: |
7aab0ecf BD |
83 | class: Wallabag\CoreBundle\Helper\HttpClientFactory |
84 | arguments: | |
7aab0ecf | 85 | - "@wallabag_core.guzzle.cookie_jar" |
d64bf795 | 86 | - '@=service(''craue_config'').get(''restricted_access'')' |
7bf6b555 | 87 | - '@logger' |
5b914b04 BD |
88 | calls: |
89 | - ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]] | |
7aab0ecf BD |
90 | |
91 | wallabag_core.guzzle.cookie_jar: | |
9a80dcf1 | 92 | class: Wallabag\CoreBundle\Helper\FileCookieJar |
51d7f62b JB |
93 | arguments: |
94 | - "@logger" | |
95 | - "%kernel.cache_dir%/cookiejar.json" | |
7aab0ecf | 96 | |
558d9aab JB |
97 | wallabag_core.content_proxy: |
98 | class: Wallabag\CoreBundle\Helper\ContentProxy | |
99 | arguments: | |
619cc453 JB |
100 | - "@wallabag_core.graby" |
101 | - "@wallabag_core.rule_based_tagger" | |
f39c5a2a | 102 | - "@wallabag_core.rule_based_ignore_origin_processor" |
0d349ea6 | 103 | - "@validator" |
619cc453 | 104 | - "@logger" |
29dca432 | 105 | - '%wallabag_core.fetching_error_message%' |
8a219854 | 106 | - '@=service(''craue_config'').get(''store_article_headers'')' |
c3510620 | 107 | |
6bc6fb1f TC |
108 | wallabag_core.tags_assigner: |
109 | class: Wallabag\CoreBundle\Helper\TagsAssigner | |
110 | arguments: | |
111 | - "@wallabag_core.tag_repository" | |
112 | ||
c3510620 KG |
113 | wallabag_core.rule_based_tagger: |
114 | class: Wallabag\CoreBundle\Helper\RuleBasedTagger | |
115 | arguments: | |
619cc453 JB |
116 | - "@rulerz" |
117 | - "@wallabag_core.tag_repository" | |
118 | - "@wallabag_core.entry_repository" | |
0a033767 | 119 | - "@logger" |
625acf33 | 120 | |
f39c5a2a KD |
121 | wallabag_core.rule_based_ignore_origin_processor: |
122 | class: Wallabag\CoreBundle\Helper\RuleBasedIgnoreOriginProcessor | |
123 | arguments: | |
124 | - "@rulerz" | |
125 | - "@logger" | |
126 | - "@wallabag_core.ignore_origin_instance_rule_repository" | |
127 | ||
5a4bbcc9 | 128 | # repository as a service |
625acf33 KG |
129 | wallabag_core.entry_repository: |
130 | class: Wallabag\CoreBundle\Repository\EntryRepository | |
5c895a7f | 131 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] |
625acf33 KG |
132 | arguments: |
133 | - WallabagCoreBundle:Entry | |
c3510620 KG |
134 | |
135 | wallabag_core.tag_repository: | |
136 | class: Wallabag\CoreBundle\Repository\TagRepository | |
5c895a7f | 137 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] |
c3510620 KG |
138 | arguments: |
139 | - WallabagCoreBundle:Tag | |
fcb1fba5 | 140 | |
5a9bc007 JB |
141 | wallabag_core.site_credential_repository: |
142 | class: Wallabag\CoreBundle\Repository\SiteCredentialRepository | |
143 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] | |
144 | arguments: | |
145 | - WallabagCoreBundle:SiteCredential | |
906424c1 JB |
146 | calls: |
147 | - [ setCrypto, [ "@wallabag_core.helper.crypto_proxy" ] ] | |
5a9bc007 | 148 | |
c675bd11 KD |
149 | wallabag_core.ignore_origin_instance_rule_repository: |
150 | class: Wallabag\CoreBundle\Repository\IgnoreOriginInstanceRuleRepository | |
151 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] | |
152 | arguments: | |
153 | - WallabagCoreBundle:IgnoreOriginInstanceRule | |
154 | ||
add597ba JB |
155 | wallabag_core.helper.entries_export: |
156 | class: Wallabag\CoreBundle\Helper\EntriesExport | |
157 | arguments: | |
dc7fa8df | 158 | - "@translator" |
be9d693e | 159 | - '%domain_name%' |
30d81a47 | 160 | - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png |
a6e27f74 KG |
161 | |
162 | wallabag.operator.array.matches: | |
163 | class: Wallabag\CoreBundle\Operator\PHP\Matches | |
164 | tags: | |
177c5510 | 165 | - { name: rulerz.operator, target: native, operator: matches } |
a6e27f74 KG |
166 | |
167 | wallabag.operator.doctrine.matches: | |
168 | class: Wallabag\CoreBundle\Operator\Doctrine\Matches | |
169 | tags: | |
177c5510 | 170 | - { name: rulerz.operator, target: doctrine, operator: matches, inline: true } |
af497a64 | 171 | |
fdd725f5 NL |
172 | wallabag.operator.array.notmatches: |
173 | class: Wallabag\CoreBundle\Operator\PHP\NotMatches | |
174 | tags: | |
175 | - { name: rulerz.operator, target: native, operator: notmatches } | |
176 | ||
177 | wallabag.operator.doctrine.notmatches: | |
178 | class: Wallabag\CoreBundle\Operator\Doctrine\NotMatches | |
179 | tags: | |
180 | - { name: rulerz.operator, target: doctrine, operator: notmatches, inline: true } | |
181 | ||
f39c5a2a KD |
182 | wallabag.operator.array.pattern_matches: |
183 | class: Wallabag\CoreBundle\Operator\PHP\PatternMatches | |
184 | tags: | |
185 | - { name: rulerz.operator, target: native, operator: "~" } | |
186 | ||
af497a64 NL |
187 | wallabag_core.helper.redirect: |
188 | class: Wallabag\CoreBundle\Helper\Redirect | |
189 | arguments: | |
190 | - "@router" | |
a42f38d9 | 191 | - "@security.token_storage" |
891456ba NL |
192 | |
193 | wallabag_core.helper.prepare_pager_for_entries: | |
194 | class: Wallabag\CoreBundle\Helper\PreparePagerForEntries | |
195 | arguments: | |
196 | - "@security.token_storage" | |
197 | - "@router" | |
b3437d58 JB |
198 | |
199 | wallabag_core.redis.client: | |
200 | class: Predis\Client | |
201 | arguments: | |
202 | - | |
6d204f53 | 203 | scheme: '%redis_scheme%' |
b3437d58 JB |
204 | host: '%redis_host%' |
205 | port: '%redis_port%' | |
6d204f53 | 206 | path: '%redis_path%' |
c1683778 | 207 | password: '%redis_password%' |
40e21962 JB |
208 | |
209 | wallabag_core.exception_controller: | |
210 | class: Wallabag\CoreBundle\Controller\ExceptionController | |
115de64e | 211 | public: true |
40e21962 JB |
212 | arguments: |
213 | - '@twig' | |
214 | - '%kernel.debug%' | |
191564b7 JB |
215 | |
216 | wallabag_core.subscriber.sqlite_cascade_delete: | |
535bfcbe | 217 | class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber |
191564b7 JB |
218 | arguments: |
219 | - "@doctrine" | |
220 | tags: | |
221 | - { name: doctrine.event_subscriber } | |
7f559418 JB |
222 | |
223 | wallabag_core.subscriber.download_images: | |
224 | class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber | |
225 | arguments: | |
e0597476 | 226 | - "@doctrine.orm.default_entity_manager" |
7f559418 | 227 | - "@wallabag_core.entry.download_images" |
e0597476 | 228 | - '@=service(''craue_config'').get(''download_images_enabled'')' |
7f559418 JB |
229 | - "@logger" |
230 | tags: | |
e0597476 | 231 | - { name: kernel.event_subscriber } |
7f559418 JB |
232 | |
233 | wallabag_core.entry.download_images: | |
234 | class: Wallabag\CoreBundle\Helper\DownloadImages | |
235 | arguments: | |
236 | - "@wallabag_core.entry.download_images.client" | |
9ca069a6 | 237 | - "%kernel.project_dir%/web/assets/images" |
80f4d85a | 238 | - '%domain_name%' |
7f559418 JB |
239 | - "@logger" |
240 | ||
241 | wallabag_core.entry.download_images.client: | |
bf9ace06 | 242 | alias: 'httplug.client.wallabag_core.entry.download_images' |
906424c1 JB |
243 | |
244 | wallabag_core.helper.crypto_proxy: | |
245 | class: Wallabag\CoreBundle\Helper\CryptoProxy | |
246 | arguments: | |
247 | - "%wallabag_core.site_credentials.encryption_key_path%" | |
248 | - "@logger" | |
115de64e JB |
249 | |
250 | wallabag_core.command.clean_duplicates: | |
251 | class: Wallabag\CoreBundle\Command\CleanDuplicatesCommand | |
252 | tags: ['console.command'] | |
253 | ||
254 | wallabag_core.command.export: | |
255 | class: Wallabag\CoreBundle\Command\ExportCommand | |
256 | tags: ['console.command'] | |
257 | ||
258 | wallabag_core.command.install: | |
259 | class: Wallabag\CoreBundle\Command\InstallCommand | |
260 | tags: ['console.command'] | |
261 | ||
262 | wallabag_core.command.list_user: | |
263 | class: Wallabag\CoreBundle\Command\ListUserCommand | |
264 | tags: ['console.command'] | |
265 | ||
266 | wallabag_core.command.reload_entry: | |
267 | class: Wallabag\CoreBundle\Command\ReloadEntryCommand | |
268 | tags: ['console.command'] | |
269 | ||
270 | wallabag_core.command.show_user: | |
271 | class: Wallabag\CoreBundle\Command\ShowUserCommand | |
272 | tags: ['console.command'] | |
273 | ||
274 | wallabag_core.command.tag_all: | |
275 | class: Wallabag\CoreBundle\Command\TagAllCommand | |
276 | tags: ['console.command'] |