When removing a component, clean up the subscriptions. Closes #1739

This commit is contained in:
James Brooks
2016-05-06 13:54:00 +01:00
parent 873f61fde6
commit ceb119b226
3 changed files with 42 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class EventServiceProvider extends ServiceProvider
//
],
'CachetHQ\Cachet\Bus\Events\Component\ComponentWasRemovedEvent' => [
//
'CachetHQ\Cachet\Bus\Handlers\Events\Component\CleanupComponentSubscriptionsHandler',
],
'CachetHQ\Cachet\Bus\Events\Component\ComponentWasUpdatedEvent' => [
'CachetHQ\Cachet\Bus\Handlers\Events\Component\SendComponentUpdateEmailNotificationHandler',