]> git.immae.eu Git - github/wallabag/wallabag.git/blob - 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
1 services:
2 wallabag_core.helper.detect_active_theme:
3 class: Wallabag\CoreBundle\Helper\DetectActiveTheme
4 arguments:
5 - "@security.token_storage"
6 - "%wallabag_core.theme%"
7 - "%liip_theme.themes%"
8
9 # custom form type
10 wallabag_core.form.type.config:
11 class: Wallabag\CoreBundle\Form\Type\ConfigType
12 arguments:
13 - "%liip_theme.themes%"
14 - "%wallabag_core.languages%"
15 tags:
16 - { name: form.type }
17
18 wallabag_core.filter.type.entry:
19 class: Wallabag\CoreBundle\Form\Type\EntryFilterType
20 arguments:
21 - "@wallabag_core.entry_repository"
22 - "@security.token_storage"
23 tags:
24 - { name: form.type }
25
26 wallabag_core.param_converter.username_feed_token_converter:
27 class: Wallabag\CoreBundle\ParamConverter\UsernameFeedTokenConverter
28 tags:
29 - { name: request.param_converter, converter: username_feed_token_converter }
30 arguments:
31 - "@doctrine"
32
33 wallabag_core.subscriber.table_prefix:
34 class: Wallabag\CoreBundle\Event\Subscriber\TablePrefixSubscriber
35 arguments:
36 - "%database_table_prefix%"
37 tags:
38 - { name: doctrine.event_subscriber }
39
40 wallabag_core.graby:
41 class: Graby\Graby
42 arguments:
43 -
44 error_message: '%wallabag_core.fetching_error_message%'
45 error_message_title: '%wallabag_core.fetching_error_message_title%'
46 - "@wallabag_core.http_client"
47 - "@wallabag_core.graby.config_builder"
48 calls:
49 - [ setLogger, [ "@logger" ] ]
50 tags:
51 - { name: monolog.logger, channel: graby }
52
53 wallabag_core.graby.config_builder:
54 class: Graby\SiteConfig\ConfigBuilder
55 arguments:
56 - {}
57 - "@logger"
58
59 wallabag_core.http_client:
60 alias: 'httplug.client.wallabag_core'
61
62 wallabag_core.guzzle_authenticator.config_builder:
63 class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder
64 arguments:
65 - "@wallabag_core.graby.config_builder"
66 - "@security.token_storage"
67 - "@wallabag_core.site_credential_repository"
68 - '@logger'
69 tags:
70 - { name: monolog.logger, channel: graby }
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.http_client_factory:
77 class: Wallabag\CoreBundle\Helper\HttpClientFactory
78 arguments:
79 - "@wallabag_core.guzzle.cookie_jar"
80 - '@=service(''craue_config'').get(''restricted_access'')'
81 - '@logger'
82 calls:
83 - ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]]
84
85 wallabag_core.guzzle.cookie_jar:
86 class: Wallabag\CoreBundle\Helper\FileCookieJar
87 arguments:
88 - "@logger"
89 - "%kernel.cache_dir%/cookiejar.json"
90
91 wallabag_core.content_proxy:
92 class: Wallabag\CoreBundle\Helper\ContentProxy
93 arguments:
94 - "@wallabag_core.graby"
95 - "@wallabag_core.rule_based_tagger"
96 - "@validator"
97 - "@logger"
98 - '%wallabag_core.fetching_error_message%'
99 - '@=service(''craue_config'').get(''store_article_headers'')'
100
101 wallabag_core.tags_assigner:
102 class: Wallabag\CoreBundle\Helper\TagsAssigner
103 arguments:
104 - "@wallabag_core.tag_repository"
105
106 wallabag_core.rule_based_tagger:
107 class: Wallabag\CoreBundle\Helper\RuleBasedTagger
108 arguments:
109 - "@rulerz"
110 - "@wallabag_core.tag_repository"
111 - "@wallabag_core.entry_repository"
112 - "@logger"
113
114 # repository as a service
115 wallabag_core.entry_repository:
116 class: Wallabag\CoreBundle\Repository\EntryRepository
117 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
118 arguments:
119 - WallabagCoreBundle:Entry
120
121 wallabag_core.tag_repository:
122 class: Wallabag\CoreBundle\Repository\TagRepository
123 factory: [ "@doctrine.orm.default_entity_manager", getRepository ]
124 arguments:
125 - WallabagCoreBundle:Tag
126
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
132 calls:
133 - [ setCrypto, [ "@wallabag_core.helper.crypto_proxy" ] ]
134
135 wallabag_core.helper.entries_export:
136 class: Wallabag\CoreBundle\Helper\EntriesExport
137 arguments:
138 - "@translator"
139 - '%domain_name%'
140 - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png
141
142 wallabag.operator.array.matches:
143 class: Wallabag\CoreBundle\Operator\PHP\Matches
144 tags:
145 - { name: rulerz.operator, target: native, operator: matches }
146
147 wallabag.operator.doctrine.matches:
148 class: Wallabag\CoreBundle\Operator\Doctrine\Matches
149 tags:
150 - { name: rulerz.operator, target: doctrine, operator: matches, inline: true }
151
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
162 wallabag_core.helper.redirect:
163 class: Wallabag\CoreBundle\Helper\Redirect
164 arguments:
165 - "@router"
166 - "@security.token_storage"
167
168 wallabag_core.helper.prepare_pager_for_entries:
169 class: Wallabag\CoreBundle\Helper\PreparePagerForEntries
170 arguments:
171 - "@security.token_storage"
172 - "@router"
173
174 wallabag_core.redis.client:
175 class: Predis\Client
176 arguments:
177 -
178 scheme: '%redis_scheme%'
179 host: '%redis_host%'
180 port: '%redis_port%'
181 path: '%redis_path%'
182 password: '%redis_password%'
183
184 wallabag_core.exception_controller:
185 class: Wallabag\CoreBundle\Controller\ExceptionController
186 public: true
187 arguments:
188 - '@twig'
189 - '%kernel.debug%'
190
191 wallabag_core.subscriber.sqlite_cascade_delete:
192 class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber
193 arguments:
194 - "@doctrine"
195 tags:
196 - { name: doctrine.event_subscriber }
197
198 wallabag_core.subscriber.download_images:
199 class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber
200 arguments:
201 - "@doctrine.orm.default_entity_manager"
202 - "@wallabag_core.entry.download_images"
203 - '@=service(''craue_config'').get(''download_images_enabled'')'
204 - "@logger"
205 tags:
206 - { name: kernel.event_subscriber }
207
208 wallabag_core.entry.download_images:
209 class: Wallabag\CoreBundle\Helper\DownloadImages
210 arguments:
211 - "@wallabag_core.entry.download_images.client"
212 - "%kernel.project_dir%/web/assets/images"
213 - '%domain_name%'
214 - "@logger"
215
216 wallabag_core.entry.download_images.client:
217 alias: 'httplug.client.wallabag_core.entry.download_images'
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"
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']