hooman-mirghasemi/Laravel-iran-sms

View on GitHub
src/Providers/EventServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace HoomanMirghasemi\Sms\Providers;

use HoomanMirghasemi\Sms\Events\ProviderConnectionFailedEvent;
use HoomanMirghasemi\Sms\Events\SmsSentEvent;
use HoomanMirghasemi\Sms\Listeners\DbLogListener;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    protected $listen = [
        SmsSentEvent::class => [
            DbLogListener::class,
        ],
        ProviderConnectionFailedEvent::class => [
            DbLogListener::class,
        ],
    ];
}