diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/config')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/config/services.yml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 4be79547..e09b0f18 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml | |||
@@ -63,7 +63,8 @@ services: | |||
63 | class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder | 63 | class: Wallabag\CoreBundle\GuzzleSiteAuthenticator\GrabySiteConfigBuilder |
64 | arguments: | 64 | arguments: |
65 | - "@wallabag_core.graby.config_builder" | 65 | - "@wallabag_core.graby.config_builder" |
66 | - "%sites_credentials%" | 66 | - "@security.token_storage" |
67 | - "@wallabag_core.site_credential_repository" | ||
67 | - '@logger' | 68 | - '@logger' |
68 | tags: | 69 | tags: |
69 | - { name: monolog.logger, channel: graby } | 70 | - { name: monolog.logger, channel: graby } |
@@ -120,6 +121,14 @@ services: | |||
120 | arguments: | 121 | arguments: |
121 | - WallabagCoreBundle:Tag | 122 | - WallabagCoreBundle:Tag |
122 | 123 | ||
124 | wallabag_core.site_credential_repository: | ||
125 | class: Wallabag\CoreBundle\Repository\SiteCredentialRepository | ||
126 | factory: [ "@doctrine.orm.default_entity_manager", getRepository ] | ||
127 | arguments: | ||
128 | - WallabagCoreBundle:SiteCredential | ||
129 | calls: | ||
130 | - [ setCrypto, [ "@wallabag_core.helper.crypto_proxy" ] ] | ||
131 | |||
123 | wallabag_core.helper.entries_export: | 132 | wallabag_core.helper.entries_export: |
124 | class: Wallabag\CoreBundle\Helper\EntriesExport | 133 | class: Wallabag\CoreBundle\Helper\EntriesExport |
125 | arguments: | 134 | arguments: |
@@ -201,3 +210,9 @@ services: | |||
201 | 210 | ||
202 | wallabag_core.entry.download_images.client: | 211 | wallabag_core.entry.download_images.client: |
203 | class: GuzzleHttp\Client | 212 | class: GuzzleHttp\Client |
213 | |||
214 | wallabag_core.helper.crypto_proxy: | ||
215 | class: Wallabag\CoreBundle\Helper\CryptoProxy | ||
216 | arguments: | ||
217 | - "%wallabag_core.site_credentials.encryption_key_path%" | ||
218 | - "@logger" | ||