forked from ushahidi/platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSubscriber.php
More file actions
35 lines (29 loc) · 763 Bytes
/
Subscriber.php
File metadata and controls
35 lines (29 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
namespace Ushahidi\App;
use Illuminate\Contracts\Events\Dispatcher;
use Ushahidi\App\Listener\CreatePostFromMessage;
use Ushahidi\App\Listener\HandleTargetedSurveyResponse;
use Ushahidi\App\Listener\QueueExportJob;
class Subscriber
{
/**
* Register the listeners for the subscriber.
*
* @param \Illuminate\Events\Dispatcher $events
*/
public function subscribe(Dispatcher $events)
{
$events->listen(
'message.receive',
HandleTargetedSurveyResponse::class
);
$events->listen(
'message.receive',
CreatePostFromMessage::class
);
$events->listen(
'export_job.create',
QueueExportJob::class
);
}
}