koel/app/Providers/iTunesServiceProvider.php

17 lines
340 B
PHP
Raw Normal View History

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