koel/app/Providers/DownloadServiceProvider.php

17 lines
350 B
PHP
Raw Normal View History

2016-06-02 17:53:26 +00:00
<?php
namespace App\Providers;
2018-08-18 12:27:17 +00:00
use App\Services\DownloadService;
2016-06-02 17:53:26 +00:00
use Illuminate\Support\ServiceProvider;
class DownloadServiceProvider extends ServiceProvider
{
2018-08-29 04:06:17 +00:00
public function register(): void
2016-06-02 17:53:26 +00:00
{
2018-08-29 04:06:17 +00:00
app()->singleton('Download', static function (): DownloadService {
return app(DownloadService::class);
2016-06-02 17:53:26 +00:00
});
}
}