diff options
Diffstat (limited to 'api/Posts/PostServiceProvider.php')
-rw-r--r-- | api/Posts/PostServiceProvider.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/api/Posts/PostServiceProvider.php b/api/Posts/PostServiceProvider.php new file mode 100644 index 0000000..181b308 --- /dev/null +++ b/api/Posts/PostServiceProvider.php @@ -0,0 +1,23 @@ +<?php + +namespace Api\Posts; + +use Infrastructure\Events\EventServiceProvider; +use Api\Posts\Events\PostWasCreated; +use Api\Posts\Events\PostWasDeleted; +use Api\Posts\Events\PostWasUpdated; + +class PostServiceProvider extends EventServiceProvider +{ + protected $listen = [ + PostWasCreated::class => [ + // listeners for when a post is created + ], + PostWasDeleted::class => [ + // listeners for when a post is deleted + ], + PostWasUpdated::class => [ + // listeners for when a post is updated + ] + ]; +} |