<?php

namespace App\Providers;

use App\Modules\Transactions\Events\TransactionCompleted;
use App\Modules\Transactions\Events\TransactionFailed;
use App\Modules\Transactions\Listeners\SendTransactionSuccessNotification;
use App\Modules\Transactions\Listeners\SendTransactionFailedNotification;
use App\Modules\Wallet\Events\WalletFunded;
use App\Modules\Wallet\Listeners\SendWalletFundedNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    protected $listen = [
        TransactionCompleted::class => [
            SendTransactionSuccessNotification::class,
        ],
        TransactionFailed::class => [
            SendTransactionFailedNotification::class,
        ],
        WalletFunded::class => [
            SendWalletFundedNotification::class,
        ],
    ];

    public function boot(): void
    {
        //
    }
}
