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