1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace App\Providers; |
4
|
|
|
|
5
|
|
|
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract; |
6
|
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; |
7
|
|
|
|
8
|
|
|
class EventServiceProvider extends ServiceProvider |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* The event listener mappings for the application. |
12
|
|
|
* |
13
|
|
|
* @var array |
14
|
|
|
*/ |
15
|
|
|
protected $listen = [ |
16
|
|
|
'App\Events\MakeWasCreated' => [], |
17
|
|
|
'App\Events\MakeWasDeleted' => [], |
18
|
|
|
'App\Events\WarehouseWasCreated' => [], |
19
|
|
|
'App\Events\WarehouseWasUpdated' => [], |
20
|
|
|
'App\Events\WarehouseWasDeleted' => [], |
21
|
|
|
'App\Events\SupplierWasCreated' => [], |
22
|
|
|
'App\Events\SupplierWasDeleted' => [], |
23
|
|
|
'App\Events\PurchaseWasCreated' => [ |
24
|
|
|
'App\Listeners\GeneratePurchaseNotification', |
25
|
|
|
], |
26
|
|
|
'App\Events\PurchaseWasDeleted' => [], |
27
|
|
|
'App\Events\ModelWasCreated' => [], |
28
|
|
|
'App\Events\ModelWasDeleted' => [], |
29
|
|
|
'App\Events\GuitarWasCreated' => [ |
30
|
|
|
'App\Listeners\GenerateRackNotification', |
31
|
|
|
], |
32
|
|
|
'App\Events\GuitarWasDeleted' => [], |
33
|
|
|
'App\Events\SaleWasCreated' => [], |
34
|
|
|
'App\Events\SaleWasDeleted' => [], |
35
|
|
|
'App\Events\NotificationWasCreated' => [], |
36
|
|
|
'App\Events\NotificationWasDismissed' => [], |
37
|
|
|
]; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* Register any other events for your application. |
41
|
|
|
* |
42
|
|
|
* @param \Illuminate\Contracts\Events\Dispatcher $events |
43
|
|
|
* |
44
|
|
|
* @return void |
45
|
|
|
*/ |
46
|
90 |
|
public function boot(DispatcherContract $events) |
47
|
|
|
{ |
48
|
90 |
|
parent::boot($events); |
49
|
90 |
|
} |
50
|
|
|
} |
51
|
|
|
|