31 lines
675 B
PHP
31 lines
675 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Services\RedisNotificationService;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
/**
|
|
* Провайдер для работы с сервисом Redis для хранения нотификаций для отображения на фронте
|
|
*/
|
|
class RedisNotificationProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
$this->app->bind(RedisNotificationService::class, function($app){
|
|
return new RedisNotificationService;
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Bootstrap services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
//
|
|
}
|
|
}
|