erp/app/Providers/EventServiceProvider.php

50 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2022-07-23 17:07:13 +08:00
<?php
namespace App\Providers;
2022-08-16 21:02:31 +08:00
use App\Events\BusinessOrdersUpdate;
2022-10-24 09:44:43 +08:00
use App\Events\GroupSetEvent;
2022-08-16 21:02:31 +08:00
use App\Events\StockUpdateEvent;
2022-10-24 09:44:43 +08:00
use App\Listeners\GroupQueryListener;
2022-08-16 21:02:31 +08:00
use App\Listeners\StockUpdateListener;
2022-10-24 09:44:43 +08:00
use App\Listeners\StockWarning;
2023-04-21 19:43:17 +08:00
use App\Listeners\CombinationGoodsStockUpdateListener;
2022-10-24 09:44:43 +08:00
use App\Listeners\UpdateBusinessGoodsStock;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
2022-07-23 17:07:13 +08:00
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
2022-08-16 21:02:31 +08:00
BusinessOrdersUpdate::class => [
2022-08-08 10:43:59 +08:00
UpdateBusinessGoodsStock::class,
2022-08-16 21:02:31 +08:00
StockWarning::class,
2023-04-21 19:43:17 +08:00
CombinationGoodsStockUpdateListener::class,
2022-08-16 21:02:31 +08:00
],
StockUpdateEvent::class => [
StockUpdateListener::class,
StockWarning::class,
2023-04-21 19:43:17 +08:00
CombinationGoodsStockUpdateListener::class,
2022-07-23 17:07:13 +08:00
],
2022-10-24 09:44:43 +08:00
GroupSetEvent::class => [
GroupQueryListener::class,
],
2022-07-23 17:07:13 +08:00
];
/**
* Register any events for your application.
*
* @return void
*/
public function boot()
{
parent::boot();
//
}
}