mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 14:40:44 +00:00
47 lines
1.0 KiB
PHP
47 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Events\BusinessOrdersUpdate;
|
|
use App\Events\GroupSetEvent;
|
|
use App\Events\StockUpdateEvent;
|
|
use App\Listeners\GroupQueryListener;
|
|
use App\Listeners\StockUpdateListener;
|
|
use App\Listeners\StockWarning;
|
|
use App\Listeners\UpdateBusinessGoodsStock;
|
|
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
|
|
|
class EventServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* The event listener mappings for the application.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $listen = [
|
|
BusinessOrdersUpdate::class => [
|
|
UpdateBusinessGoodsStock::class,
|
|
StockWarning::class,
|
|
],
|
|
StockUpdateEvent::class => [
|
|
StockUpdateListener::class,
|
|
StockWarning::class,
|
|
],
|
|
GroupSetEvent::class => [
|
|
GroupQueryListener::class,
|
|
],
|
|
];
|
|
|
|
/**
|
|
* Register any events for your application.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
parent::boot();
|
|
|
|
//
|
|
}
|
|
}
|