Начало работы с redis, попытки сделать SOLIDно

This commit is contained in:
vasya
2026-04-11 22:50:52 +03:00
parent ef388bfa2a
commit 8a371d05b0
3 changed files with 67 additions and 40 deletions
@@ -0,0 +1,30 @@
<?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
{
//
}
}