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