koel/app/Providers/ITunesServiceProvider.php
2020-12-22 21:11:22 +01:00

16 lines
340 B
PHP

<?php
namespace App\Providers;
use App\Services\ITunesService;
use Illuminate\Support\ServiceProvider;
class ITunesServiceProvider extends ServiceProvider
{
public function register(): void
{
app()->singleton('iTunes', static function (): ITunesService {
return app(ITunesService::class);
});
}
}