koel/app/Providers/iTunesServiceProvider.php

17 lines
340 B
PHP
Raw Normal View History

2016-12-11 21:08:30 +08:00
<?php
namespace App\Providers;
2018-08-19 16:40:25 +02:00
use App\Services\iTunesService;
2016-12-11 21:08:30 +08:00
use Illuminate\Support\ServiceProvider;
class iTunesServiceProvider extends ServiceProvider
{
2018-08-29 11:06:17 +07:00
public function register(): void
2016-12-11 21:08:30 +08:00
{
2018-08-29 11:06:17 +07:00
app()->singleton('iTunes', static function (): iTunesService {
return app(iTunesService::class);
2016-12-11 21:08:30 +08:00
});
}
}