-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Extension.php
41 lines (35 loc) · 940 Bytes
/
Extension.php
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
36
37
38
39
40
41
<?php
namespace Igniter\Broadcast;
use Igniter\Broadcast\Classes\Manager;
use System\Classes\BaseExtension;
/**
* Broadcast Extension Information File
*/
class Extension extends BaseExtension
{
public function register()
{
Manager::instance()->register($this->app);
}
public function boot()
{
Manager::instance()->boot($this->app);
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'Broadcast Events Settings',
'description' => 'Manage pusher api and cluster settings.',
'icon' => 'fa fa-bullhorn',
'model' => \Igniter\Broadcast\Models\Settings::class,
],
];
}
public function registerEventBroadcasts()
{
return [
'activityLogger.logCreated' => \Igniter\Broadcast\Events\BroadcastActivityCreated::class,
];
}
}