koel/app/Providers/iTunesServiceProvider.php
2018-08-29 13:15:24 +07: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);
});
}
}