<?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();

        //
    }
}
