<?php

namespace MoneyTransfer\AuditLog\Providers;

use MoneyTransfer\AuditLog\Events\AuditHandlerEvent;
use MoneyTransfer\AuditLog\Listeners\AuditHandlerListener;
use MoneyTransfer\AuditLog\Listeners\CreatedContentListener;
use MoneyTransfer\AuditLog\Listeners\DeletedContentListener;
use MoneyTransfer\AuditLog\Listeners\LoginListener;
use MoneyTransfer\AuditLog\Listeners\UpdatedContentListener;
use App\Events\CreatedContentEvent;
use App\Events\DeletedContentEvent;
use App\Events\UpdatedContentEvent;
use Illuminate\Auth\Events\Login;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    protected $listen = [
        AuditHandlerEvent::class => [
            AuditHandlerListener::class,
        ],
        Login::class => [
            LoginListener::class,
        ],
        UpdatedContentEvent::class => [
            UpdatedContentListener::class,
        ],
        CreatedContentEvent::class => [
            CreatedContentListener::class,
        ],
        DeletedContentEvent::class => [
            DeletedContentListener::class,
        ],
    ];
}
