Astrotomic/notifynder-sender-redis

View on GitHub
src/Notifynder/NotifynderSenderRedisServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Astrotomic\Notifynder;

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

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