koel/app/Providers/DownloadServiceProvider.php
2021-06-05 12:47:56 +02:00

14 lines
315 B
PHP

<?php
namespace App\Providers;
use App\Services\DownloadService;
use Illuminate\Support\ServiceProvider;
class DownloadServiceProvider extends ServiceProvider
{
public function register(): void
{
app()->singleton('Download', static fn (): DownloadService => app(DownloadService::class));
}
}