<?php

namespace App\Providers;

use App\Listeners\StockWarning;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;
use App\Listeners\UpdateBusinessGoodsStock;
use App\Events\BusinessOrdersUpdate;
use App\Events\StockUpdateEvent;
use App\Listeners\StockUpdateListener;

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,
        ],
    ];

    /**
     * Register any events for your application.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();

        //
    }
}
