]> git.immae.eu Git - github/wallabag/wallabag.git/commit - src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php
Use custom event instead of Doctrine ones
authorJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 1 Nov 2016 13:49:02 +0000 (14:49 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Tue, 1 Nov 2016 13:49:02 +0000 (14:49 +0100)
commite0597476d1d5f6a4a7d6ea9b76966465f3d22fb8
tree65c1ffe6906e9faacca5cbbf814f762d9013551d
parentaedd6ca0fd212abd07ec59c5fd58ea2ca99198c5
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.
src/Wallabag/CoreBundle/Controller/EntryController.php
src/Wallabag/CoreBundle/Event/EntryDeletedEvent.php [new file with mode: 0644]
src/Wallabag/CoreBundle/Event/EntrySavedEvent.php [new file with mode: 0644]
src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php
src/Wallabag/CoreBundle/Helper/DownloadImages.php
src/Wallabag/CoreBundle/Resources/config/services.yml
tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php