koel/app/Providers/DownloadServiceProvider.php

15 lines
315 B
PHP
Raw Normal View History

2016-06-03 01:53:26 +08:00
<?php
namespace App\Providers;
2018-08-18 14:27:17 +02:00
use App\Services\DownloadService;
2016-06-03 01:53:26 +08:00
use Illuminate\Support\ServiceProvider;
class DownloadServiceProvider extends ServiceProvider
{
2018-08-29 11:06:17 +07:00
public function register(): void
2016-06-03 01:53:26 +08:00
{
2021-06-05 12:47:56 +02:00
app()->singleton('Download', static fn (): DownloadService => app(DownloadService::class));
2016-06-03 01:53:26 +08:00
}
}