koel/app/Providers/LastfmServiceProvider.php
2018-08-19 13:13:08 +02:00

31 lines
542 B
PHP

<?php
namespace App\Providers;
use App\Services\LastfmService;
use Illuminate\Support\ServiceProvider;
class LastfmServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
app()->singleton('Lastfm', function () {
return app()->make(LastfmService::class);
});
}
}