FleetCart/Modules/Order/Providers/EventServiceProvider.php
2023-12-03 14:07:47 +00:00

24 lines
638 B
PHP

<?php
namespace Modules\Order\Providers;
use Modules\Order\Events\OrderStatusChanged;
use Modules\Order\Listeners\SendOrderStatusChangedSms;
use Modules\Order\Listeners\SendOrderStatusChangedEmail;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var array
*/
protected $listen = [
OrderStatusChanged::class => [
SendOrderStatusChangedEmail::class,
SendOrderStatusChangedSms::class,
],
];
}