]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Resources/config/services.yml
Added internal setting to enable/disable headers storage
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / config / services.yml
CommitLineData
7ffb1e80 1services:
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
0c83fd59
J
25 wallabag_core.param_converter.username_rsstoken_converter:
26 class: Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter
27 tags:
28 - { name: request.param_converter, converter: username_rsstoken_converter }
29 arguments:
619cc453 30 - "@doctrine"
164bd801 31
ac8cf632 32 wallabag_core.subscriber.table_prefix:
535bfcbe 33 class: Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber
772d8c4b 34 arguments:
624a7c6d 35 - "%database_table_prefix%"
bd0f3d32
JB
36 tags:
37 - { name: doctrine.event_subscriber }
fad31615
JB
38
39 wallabag_core.graby:
40 class: Graby\Graby
558d9aab 41 arguments:
e71c376d 42 -
2297d60f 43 error_message: '%wallabag_core.fetching_error_message%'
1c5da417 44 error_message_title: '%wallabag_core.fetching_error_message_title%'
7aab0ecf
BD
45 - "@wallabag_core.guzzle.http_client"
46 - "@wallabag_core.graby.config_builder"
c929c88f 47 calls:
619cc453 48 - [ setLogger, [ "@logger" ] ]
c929c88f
JB
49 tags:
50 - { name: monolog.logger, channel: graby }
558d9aab 51
7aab0ecf
BD
52 wallabag_core.graby.config_builder:
53 class: Graby\SiteConfig\ConfigBuilder
54 arguments:
55 - {}
56 - "@logger"
57
58 wallabag_core.guzzle.http_client:
59 class: GuzzleHttp\ClientInterface
60 factory: ["@wallabag_core.guzzle.http_client_factory", buildHttpClient]
61
62 wallabag_core.guzzle_authenticator.config_builder:
63 class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder
64 arguments:
65 - "@wallabag_core.graby.config_builder"
b8427f22 66 - "@security.token_storage"
5a9bc007 67 - "@wallabag_core.site_credential_repository"
94b232bb
JB
68 - '@logger'
69 tags:
70 - { name: monolog.logger, channel: graby }
7aab0ecf
BD
71
72 # service alias override
73 bd_guzzle_site_authenticator.site_config_builder:
74 alias: wallabag_core.guzzle_authenticator.config_builder
75
76 wallabag_core.guzzle.http_client_factory:
77 class: Wallabag\CoreBundle\Helper\HttpClientFactory
78 arguments:
7aab0ecf 79 - "@wallabag_core.guzzle.cookie_jar"
d64bf795 80 - '@=service(''craue_config'').get(''restricted_access'')'
7bf6b555 81 - '@logger'
5b914b04
BD
82 calls:
83 - ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]]
7aab0ecf
BD
84
85 wallabag_core.guzzle.cookie_jar:
86 class: GuzzleHttp\Cookie\FileCookieJar
87 arguments: ["%kernel.cache_dir%/cookiejar.json"]
88
558d9aab
JB
89 wallabag_core.content_proxy:
90 class: Wallabag\CoreBundle\Helper\ContentProxy
91 arguments:
619cc453
JB
92 - "@wallabag_core.graby"
93 - "@wallabag_core.rule_based_tagger"
0d349ea6 94 - "@validator"
619cc453 95 - "@logger"
29dca432 96 - '%wallabag_core.fetching_error_message%'
8a219854 97 - '@=service(''craue_config'').get(''store_article_headers'')'
c3510620 98
6bc6fb1f
TC
99 wallabag_core.tags_assigner:
100 class: Wallabag\CoreBundle\Helper\TagsAssigner
101 arguments:
102 - "@wallabag_core.tag_repository"
103
c3510620
KG
104 wallabag_core.rule_based_tagger:
105 class: Wallabag\CoreBundle\Helper\RuleBasedTagger
106 arguments:
619cc453
JB
107 - "@rulerz"
108 - "@wallabag_core.tag_repository"
109 - "@wallabag_core.entry_repository"
0a033767 110 - "@logger"
625acf33 111
5a4bbcc9 112 # repository as a service
625acf33
KG
113 wallabag_core.entry_repository:
114 class: Wallabag\CoreBundle\Repository\EntryRepository
5c895a7f 115 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
625acf33
KG
116 arguments:
117 - WallabagCoreBundle:Entry
c3510620
KG
118
119 wallabag_core.tag_repository:
120 class: Wallabag\CoreBundle\Repository\TagRepository
5c895a7f 121 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
c3510620
KG
122 arguments:
123 - WallabagCoreBundle:Tag
fcb1fba5 124
5a9bc007
JB
125 wallabag_core.site_credential_repository:
126 class: Wallabag\CoreBundle\Repository\SiteCredentialRepository
127 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
128 arguments:
129 - WallabagCoreBundle:SiteCredential
906424c1
JB
130 calls:
131 - [ setCrypto, [ "@wallabag_core.helper.crypto_proxy" ] ]
5a9bc007 132
add597ba
JB
133 wallabag_core.helper.entries_export:
134 class: Wallabag\CoreBundle\Helper\EntriesExport
135 arguments:
dc7fa8df 136 - "@translator"
be9d693e 137 - '%domain_name%'
30d81a47 138 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
a6e27f74
KG
139
140 wallabag.operator.array.matches:
141 class: Wallabag\CoreBundle\Operator\PHP\Matches
142 tags:
177c5510 143 - { name: rulerz.operator, target: native, operator: matches }
a6e27f74
KG
144
145 wallabag.operator.doctrine.matches:
146 class: Wallabag\CoreBundle\Operator\Doctrine\Matches
147 tags:
177c5510 148 - { name: rulerz.operator, target: doctrine, operator: matches, inline: true }
af497a64 149
fdd725f5
NL
150 wallabag.operator.array.notmatches:
151 class: Wallabag\CoreBundle\Operator\PHP\NotMatches
152 tags:
153 - { name: rulerz.operator, target: native, operator: notmatches }
154
155 wallabag.operator.doctrine.notmatches:
156 class: Wallabag\CoreBundle\Operator\Doctrine\NotMatches
157 tags:
158 - { name: rulerz.operator, target: doctrine, operator: notmatches, inline: true }
159
af497a64
NL
160 wallabag_core.helper.redirect:
161 class: Wallabag\CoreBundle\Helper\Redirect
162 arguments:
163 - "@router"
a42f38d9 164 - "@security.token_storage"
891456ba
NL
165
166 wallabag_core.helper.prepare_pager_for_entries:
167 class: Wallabag\CoreBundle\Helper\PreparePagerForEntries
168 arguments:
169 - "@security.token_storage"
170 - "@router"
b3437d58
JB
171
172 wallabag_core.redis.client:
173 class: Predis\Client
174 arguments:
175 -
6d204f53 176 scheme: '%redis_scheme%'
b3437d58
JB
177 host: '%redis_host%'
178 port: '%redis_port%'
6d204f53 179 path: '%redis_path%'
c1683778 180 password: '%redis_password%'
40e21962
JB
181
182 wallabag_core.exception_controller:
183 class: Wallabag\CoreBundle\Controller\ExceptionController
184 arguments:
185 - '@twig'
186 - '%kernel.debug%'
191564b7
JB
187
188 wallabag_core.subscriber.sqlite_cascade_delete:
535bfcbe 189 class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber
191564b7
JB
190 arguments:
191 - "@doctrine"
192 tags:
193 - { name: doctrine.event_subscriber }
7f559418
JB
194
195 wallabag_core.subscriber.download_images:
196 class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber
197 arguments:
e0597476 198 - "@doctrine.orm.default_entity_manager"
7f559418 199 - "@wallabag_core.entry.download_images"
e0597476 200 - '@=service(''craue_config'').get(''download_images_enabled'')'
7f559418
JB
201 - "@logger"
202 tags:
e0597476 203 - { name: kernel.event_subscriber }
7f559418
JB
204
205 wallabag_core.entry.download_images:
206 class: Wallabag\CoreBundle\Helper\DownloadImages
207 arguments:
208 - "@wallabag_core.entry.download_images.client"
9ca069a6 209 - "%kernel.project_dir%/web/assets/images"
80f4d85a 210 - '%domain_name%'
7f559418
JB
211 - "@logger"
212
213 wallabag_core.entry.download_images.client:
214 class: GuzzleHttp\Client
906424c1
JB
215
216 wallabag_core.helper.crypto_proxy:
217 class: Wallabag\CoreBundle\Helper\CryptoProxy
218 arguments:
219 - "%wallabag_core.site_credentials.encryption_key_path%"
220 - "@logger"