Astrotomic/notifynder-sender-email

View on GitHub
src/Notifynder/NotifynderSenderEmailServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Astrotomic\Notifynder;

use Illuminate\Support\ServiceProvider;
use Astrotomic\Notifynder\Senders\EmailSender;

class NotifynderSenderEmailServiceProvider extends ServiceProvider
{
    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        app('notifynder')->extend('sendEmail', function (array $notifications) {
            return new EmailSender($notifications);
        });
    }
}