Add delete method on databox repositories to invalidate cache on delete

This commit is contained in:
Thibaud Fabre
2016-01-28 16:09:37 +01:00
parent 40ff41501c
commit 841182eca4
5 changed files with 29 additions and 0 deletions

View File

@@ -935,6 +935,8 @@ class databox extends base implements ThumbnailedElement
$this->get_appbox()->delete_data_from_cache(appbox::CACHE_LIST_BASES);
$this->databoxRepository->delete($this);
$this->app['dispatcher']->dispatch(
DataboxEvents::DELETED,
new DeletedEvent(