<?php

namespace App\Providers;

use App\Events\Applications\ApplicationStatusChanged;
use App\Events\FeedbackSender;
use App\Events\PasswordRecovered;
use App\Events\UserRegistered;
use App\Listeners\Applications\SendApplicationStatusChangedNotifications;
use App\Listeners\SendFeedbackMessage;
use App\Listeners\SendPasswordRecoveredNotification;
use App\Listeners\SendRegistrationNotification;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider {
    protected $listen = [
        Registered::class => [
            SendEmailVerificationNotification::class,
        ],
		UserRegistered::class => [
			SendRegistrationNotification::class
		],
        PasswordRecovered::class => [
            SendPasswordRecoveredNotification::class
        ],
        FeedbackSender::class => [
            SendFeedbackMessage::class
        ],

        ApplicationStatusChanged::class => [
            SendApplicationStatusChangedNotifications::class
        ]
    ];

    public function boot() {
        parent::boot();
    }
}
