koel/app/Providers/YouTubeServiceProvider.php

32 lines
546 B
PHP
Raw Normal View History

2016-07-14 08:47:50 +00:00
<?php
namespace App\Providers;
use App\Services\YouTubeService;
2016-07-14 08:47:50 +00:00
use Illuminate\Support\ServiceProvider;
class YouTubeServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
app()->singleton('YouTube', function () {
return app()->make(YouTubeService::class);
2016-07-14 08:47:50 +00:00
});
}
}