coolify/app/Providers/HorizonServiceProvider.php

29 lines
634 B
PHP
Raw Normal View History

2023-05-10 07:26:25 +00:00
<?php
namespace App\Providers;
2025-01-10 13:28:46 +00:00
use App\Contracts\CustomJobRepositoryInterface;
use App\Repositories\CustomJobRepository;
use Illuminate\Support\ServiceProvider;
use Laravel\Horizon\Contracts\JobRepository;
2023-05-10 07:26:25 +00:00
2025-01-10 13:28:46 +00:00
class HorizonServiceProvider extends ServiceProvider
2023-05-10 07:26:25 +00:00
{
/**
2025-01-10 13:28:46 +00:00
* Register services.
2023-05-10 07:26:25 +00:00
*/
2025-01-10 13:28:46 +00:00
public function register(): void
2023-05-10 07:26:25 +00:00
{
2025-01-10 13:28:46 +00:00
$this->app->singleton(JobRepository::class, CustomJobRepository::class);
$this->app->singleton(CustomJobRepositoryInterface::class, CustomJobRepository::class);
2023-05-10 07:26:25 +00:00
}
/**
2025-01-10 13:28:46 +00:00
* Bootstrap services.
2023-05-10 07:26:25 +00:00
*/
2025-01-10 13:28:46 +00:00
public function boot(): void
2023-05-10 07:26:25 +00:00
{
2025-01-10 13:28:46 +00:00
//
2023-05-10 07:26:25 +00:00
}
}