aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/config/services.yml
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-11-01 14:49:02 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-11-01 14:49:02 +0100
commite0597476d1d5f6a4a7d6ea9b76966465f3d22fb8 (patch)
tree65c1ffe6906e9faacca5cbbf814f762d9013551d /src/Wallabag/CoreBundle/Resources/config/services.yml
parentaedd6ca0fd212abd07ec59c5fd58ea2ca99198c5 (diff)
downloadwallabag-e0597476d1d5f6a4a7d6ea9b76966465f3d22fb8.tar.gz
wallabag-e0597476d1d5f6a4a7d6ea9b76966465f3d22fb8.tar.zst
wallabag-e0597476d1d5f6a4a7d6ea9b76966465f3d22fb8.zip
Use custom event instead of Doctrine ones
This give us ability to use Entry ID to determine where to store images and it’s then more easy to remove them when we remove the entry.
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/config/services.yml')
-rw-r--r--src/Wallabag/CoreBundle/Resources/config/services.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml
index 1fb81a46..56d776ad 100644
--- a/src/Wallabag/CoreBundle/Resources/config/services.yml
+++ b/src/Wallabag/CoreBundle/Resources/config/services.yml
@@ -140,17 +140,19 @@ services:
140 wallabag_core.subscriber.download_images: 140 wallabag_core.subscriber.download_images:
141 class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber 141 class: Wallabag\CoreBundle\Event\Subscriber\DownloadImagesSubscriber
142 arguments: 142 arguments:
143 - "@doctrine.orm.default_entity_manager"
143 - "@wallabag_core.entry.download_images" 144 - "@wallabag_core.entry.download_images"
144 - "%craue_config.config.class%" 145 - '@=service(''craue_config'').get(''download_images_enabled'')'
145 - "@logger" 146 - "@logger"
146 tags: 147 tags:
147 - { name: doctrine.event_subscriber } 148 - { name: kernel.event_subscriber }
148 149
149 wallabag_core.entry.download_images: 150 wallabag_core.entry.download_images:
150 class: Wallabag\CoreBundle\Helper\DownloadImages 151 class: Wallabag\CoreBundle\Helper\DownloadImages
151 arguments: 152 arguments:
152 - "@wallabag_core.entry.download_images.client" 153 - "@wallabag_core.entry.download_images.client"
153 - "%kernel.root_dir%/../web/assets/images" 154 - "%kernel.root_dir%/../web/assets/images"
155 - '@=service(''craue_config'').get(''wallabag_url'')'
154 - "@logger" 156 - "@logger"
155 157
156 wallabag_core.entry.download_images.client: 158 wallabag_core.entry.download_images.client: