diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/config/services.yml')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/config/services.yml | 52 |
1 files changed, 41 insertions, 11 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 85306276..3f3d4de7 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml | |||
@@ -22,10 +22,10 @@ services: | |||
22 | tags: | 22 | tags: |
23 | - { name: form.type } | 23 | - { name: form.type } |
24 | 24 | ||
25 | wallabag_core.param_converter.username_rsstoken_converter: | 25 | wallabag_core.param_converter.username_feed_token_converter: |
26 | class: Wallabag\CoreBundle\ParamConverter\UsernameRssTokenConverter | 26 | class: Wallabag\CoreBundle\ParamConverter\UsernameFeedTokenConverter |
27 | tags: | 27 | tags: |
28 | - { name: request.param_converter, converter: username_rsstoken_converter } | 28 | - { name: request.param_converter, converter: username_feed_token_converter } |
29 | arguments: | 29 | arguments: |
30 | - "@doctrine" | 30 | - "@doctrine" |
31 | 31 | ||
@@ -42,7 +42,7 @@ services: | |||
42 | - | 42 | - |
43 | error_message: '%wallabag_core.fetching_error_message%' | 43 | error_message: '%wallabag_core.fetching_error_message%' |
44 | error_message_title: '%wallabag_core.fetching_error_message_title%' | 44 | error_message_title: '%wallabag_core.fetching_error_message_title%' |
45 | - "@wallabag_core.guzzle.http_client" | 45 | - "@wallabag_core.http_client" |
46 | - "@wallabag_core.graby.config_builder" | 46 | - "@wallabag_core.graby.config_builder" |
47 | calls: | 47 | calls: |
48 | - [ setLogger, [ "@logger" ] ] | 48 | - [ setLogger, [ "@logger" ] ] |
@@ -55,9 +55,8 @@ services: | |||
55 | - {} | 55 | - {} |
56 | - "@logger" | 56 | - "@logger" |
57 | 57 | ||
58 | wallabag_core.guzzle.http_client: | 58 | wallabag_core.http_client: |
59 | class: GuzzleHttp\ClientInterface | 59 | alias: 'httplug.client.wallabag_core' |
60 | factory: ["@wallabag_core.guzzle.http_client_factory", buildHttpClient] | ||
61 | 60 | ||
62 | wallabag_core.guzzle_authenticator.config_builder: | 61 | wallabag_core.guzzle_authenticator.config_builder: |
63 | class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder | 62 | class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder |
@@ -73,7 +72,7 @@ services: | |||
73 | bd_guzzle_site_authenticator.site_config_builder: | 72 | bd_guzzle_site_authenticator.site_config_builder: |
74 | alias: wallabag_core.guzzle_authenticator.config_builder | 73 | alias: wallabag_core.guzzle_authenticator.config_builder |
75 | 74 | ||
76 | wallabag_core.guzzle.http_client_factory: | 75 | wallabag_core.http_client_factory: |
77 | class: Wallabag\CoreBundle\Helper\HttpClientFactory | 76 | class: Wallabag\CoreBundle\Helper\HttpClientFactory |
78 | arguments: | 77 | arguments: |
79 | - "@wallabag_core.guzzle.cookie_jar" | 78 | - "@wallabag_core.guzzle.cookie_jar" |
@@ -83,8 +82,10 @@ services: | |||
83 | - ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]] | 82 | - ["addSubscriber", ["@bd_guzzle_site_authenticator.authenticator_subscriber"]] |
84 | 83 | ||
85 | wallabag_core.guzzle.cookie_jar: | 84 | wallabag_core.guzzle.cookie_jar: |
86 | class: GuzzleHttp\Cookie\FileCookieJar | 85 | class: Wallabag\CoreBundle\Helper\FileCookieJar |
87 | arguments: ["%kernel.cache_dir%/cookiejar.json"] | 86 | arguments: |
87 | - "@logger" | ||
88 | - "%kernel.cache_dir%/cookiejar.json" | ||
88 | 89 | ||
89 | wallabag_core.content_proxy: | 90 | wallabag_core.content_proxy: |
90 | class: Wallabag\CoreBundle\Helper\ContentProxy | 91 | class: Wallabag\CoreBundle\Helper\ContentProxy |
@@ -181,6 +182,7 @@ services: | |||
181 | 182 | ||
182 | wallabag_core.exception_controller: | 183 | wallabag_core.exception_controller: |
183 | class: Wallabag\CoreBundle\Controller\ExceptionController | 184 | class: Wallabag\CoreBundle\Controller\ExceptionController |
185 | public: true | ||
184 | arguments: | 186 | arguments: |
185 | - '@twig' | 187 | - '@twig' |
186 | - '%kernel.debug%' | 188 | - '%kernel.debug%' |
@@ -211,10 +213,38 @@ services: | |||
211 | - "@logger" | 213 | - "@logger" |
212 | 214 | ||
213 | wallabag_core.entry.download_images.client: | 215 | wallabag_core.entry.download_images.client: |
214 | class: GuzzleHttp\Client | 216 | alias: 'httplug.client.wallabag_core.entry.download_images' |
215 | 217 | ||
216 | wallabag_core.helper.crypto_proxy: | 218 | wallabag_core.helper.crypto_proxy: |
217 | class: Wallabag\CoreBundle\Helper\CryptoProxy | 219 | class: Wallabag\CoreBundle\Helper\CryptoProxy |
218 | arguments: | 220 | arguments: |
219 | - "%wallabag_core.site_credentials.encryption_key_path%" | 221 | - "%wallabag_core.site_credentials.encryption_key_path%" |
220 | - "@logger" | 222 | - "@logger" |
223 | |||
224 | wallabag_core.command.clean_duplicates: | ||
225 | class: Wallabag\CoreBundle\Command\CleanDuplicatesCommand | ||
226 | tags: ['console.command'] | ||
227 | |||
228 | wallabag_core.command.export: | ||
229 | class: Wallabag\CoreBundle\Command\ExportCommand | ||
230 | tags: ['console.command'] | ||
231 | |||
232 | wallabag_core.command.install: | ||
233 | class: Wallabag\CoreBundle\Command\InstallCommand | ||
234 | tags: ['console.command'] | ||
235 | |||
236 | wallabag_core.command.list_user: | ||
237 | class: Wallabag\CoreBundle\Command\ListUserCommand | ||
238 | tags: ['console.command'] | ||
239 | |||
240 | wallabag_core.command.reload_entry: | ||
241 | class: Wallabag\CoreBundle\Command\ReloadEntryCommand | ||
242 | tags: ['console.command'] | ||
243 | |||
244 | wallabag_core.command.show_user: | ||
245 | class: Wallabag\CoreBundle\Command\ShowUserCommand | ||
246 | tags: ['console.command'] | ||
247 | |||
248 | wallabag_core.command.tag_all: | ||
249 | class: Wallabag\CoreBundle\Command\TagAllCommand | ||
250 | tags: ['console.command'] | ||