blob: 181b3089631e9846acfccb103280e10b9fea0b2b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
]
];
}
|