]>
Commit | Line | Data |
---|---|---|
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 | error_message_title: '%wallabag_core.fetching_error_message_title%' | |
45 | - "@wallabag_core.guzzle.http_client" | |
46 | - "@wallabag_core.graby.config_builder" | |
47 | calls: | |
48 | - [ setLogger, [ "@logger" ] ] | |
49 | tags: | |
50 | - { name: monolog.logger, channel: graby } | |
51 | ||
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" | |
66 | - "%sites_credentials%" | |
67 | - '@logger' | |
68 | tags: | |
69 | - { name: monolog.logger, channel: graby } | |
70 | ||
71 | # service alias override | |
72 | bd_guzzle_site_authenticator.site_config_builder: | |
73 | alias: wallabag_core.guzzle_authenticator.config_builder | |
74 | ||
75 | wallabag_core.guzzle.http_client_factory: | |
76 | class: Wallabag\CoreBundle\Helper\HttpClientFactory | |
77 | arguments: | |
78 | - "@wallabag_core.guzzle.cookie_jar" | |
79 | - '@=service(''craue_config'').get(''restricted_access'')' | |
80 | - '@logger' | |
81 | calls: | |
82 | - ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]] | |
83 | ||
84 | wallabag_core.guzzle.cookie_jar: | |
85 | class: GuzzleHttp\Cookie\FileCookieJar | |
86 | arguments: ["%kernel.cache_dir%/cookiejar.json"] | |
87 | ||
88 | wallabag_core.content_proxy: | |
89 | class: Wallabag\CoreBundle\Helper\ContentProxy | |
90 | arguments: | |
91 | - "@wallabag_core.graby" | |
92 | - "@wallabag_core.rule_based_tagger" | |
93 | - "@logger" | |
94 | - '%wallabag_core.fetching_error_message%' | |
95 | ||
96 | wallabag_core.tags_assigner: | |
97 | class: Wallabag\CoreBundle\Helper\TagsAssigner | |
98 | arguments: | |
99 | - "@wallabag_core.tag_repository" | |
100 | ||
101 | wallabag_core.rule_based_tagger: | |
102 | class: Wallabag\CoreBundle\Helper\RuleBasedTagger | |
103 | arguments: | |
104 | - "@rulerz" | |
105 | - "@wallabag_core.tag_repository" | |
106 | - "@wallabag_core.entry_repository" | |
107 | - "@logger" | |
108 | ||
109 | # repository as a service | |
110 | wallabag_core.entry_repository: | |
111 | class: Wallabag\CoreBundle\Repository\EntryRepository | |
112 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] | |
113 | arguments: | |
114 | - WallabagCoreBundle:Entry | |
115 | ||
116 | wallabag_core.tag_repository: | |
117 | class: Wallabag\CoreBundle\Repository\TagRepository | |
118 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] | |
119 | arguments: | |
120 | - WallabagCoreBundle:Tag | |
121 | ||
122 | wallabag_core.helper.entries_export: | |
123 | class: Wallabag\CoreBundle\Helper\EntriesExport | |
124 | arguments: | |
125 | - '%domain_name%' | |
126 | - src/Wallabag/CoreBundle/Resources/public/themes/_global/img/appicon/apple-touch-icon-152.png | |
127 | ||
128 | wallabag.operator.array.matches: | |
129 | class: Wallabag\CoreBundle\Operator\PHP\Matches | |
130 | tags: | |
131 | - { name: rulerz.operator, target: native, operator: matches } | |
132 | ||
133 | wallabag.operator.doctrine.matches: | |
134 | class: Wallabag\CoreBundle\Operator\Doctrine\Matches | |
135 | tags: | |
136 | - { name: rulerz.operator, target: doctrine, operator: matches, inline: true } | |
137 | ||
138 | wallabag.operator.array.notmatches: | |
139 | class: Wallabag\CoreBundle\Operator\PHP\NotMatches | |
140 | tags: | |
141 | - { name: rulerz.operator, target: native, operator: notmatches } | |
142 | ||
143 | wallabag.operator.doctrine.notmatches: | |
144 | class: Wallabag\CoreBundle\Operator\Doctrine\NotMatches | |
145 | tags: | |
146 | - { name: rulerz.operator, target: doctrine, operator: notmatches, inline: true } | |
147 | ||
148 | wallabag_core.helper.redirect: | |
149 | class: Wallabag\CoreBundle\Helper\Redirect | |
150 | arguments: | |
151 | - "@router" | |
152 | - "@security.token_storage" | |
153 | ||
154 | wallabag_core.helper.prepare_pager_for_entries: | |
155 | class: Wallabag\CoreBundle\Helper\PreparePagerForEntries | |
156 | arguments: | |
157 | - "@security.token_storage" | |
158 | - "@router" | |
159 | ||
160 | wallabag_core.redis.client: | |
161 | class: Predis\Client | |
162 | arguments: | |
163 | - | |
164 | scheme: '%redis_scheme%' | |
165 | host: '%redis_host%' | |
166 | port: '%redis_port%' | |
167 | path: '%redis_path%' | |
168 | password: '%redis_password%' | |
169 | ||
170 | wallabag_core.exception_controller: | |
171 | class: Wallabag\CoreBundle\Controller\ExceptionController | |
172 | arguments: | |
173 | - '@twig' | |
174 | - '%kernel.debug%' | |
175 | ||
176 | wallabag_core.subscriber.sqlite_cascade_delete: | |
177 | class: Wallabag\CoreBundle\Event\Subscriber\SQLiteCascadeDeleteSubscriber | |
178 | arguments: | |
179 | - "@doctrine" | |
180 | tags: | |
181 | - { name: doctrine.event_subscriber } | |
182 | ||
183 | wallabag_core.subscriber.download_images: | |
184 | class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber | |
185 | arguments: | |
186 | - "@doctrine.orm.default_entity_manager" | |
187 | - "@wallabag_core.entry.download_images" | |
188 | - '@=service(''craue_config'').get(''download_images_enabled'')' | |
189 | - "@logger" | |
190 | tags: | |
191 | - { name: kernel.event_subscriber } | |
192 | ||
193 | wallabag_core.entry.download_images: | |
194 | class: Wallabag\CoreBundle\Helper\DownloadImages | |
195 | arguments: | |
196 | - "@wallabag_core.entry.download_images.client" | |
197 | - "%kernel.root_dir%/../web/assets/images" | |
198 | - '@=service(''craue_config'').get(''wallabag_url'')' | |
199 | - "@logger" | |
200 | ||
201 | wallabag_core.entry.download_images.client: | |
202 | class: GuzzleHttp\Client |