<?php

namespace App\Providers;

use App\Events\ActivityDecisionApplied;
use App\Events\ChangeContractSegment;
use App\Events\DocumentGenerated;
use App\Listeners\ApplyChangeContractSegment;
use App\Listeners\LogDocumentGenerated;
use App\Listeners\TriggerDecisionEvents;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    protected $listen = [
        DocumentGenerated::class => [
            LogDocumentGenerated::class,
        ],
        ActivityDecisionApplied::class => [
            TriggerDecisionEvents::class,
        ],
        ChangeContractSegment::class => [
            ApplyChangeContractSegment::class,
        ],
    ];
}
