koel/app/Providers/YouTubeServiceProvider.php

32 lines
518 B
PHP
Raw Normal View History

2016-07-14 08:47:50 +00:00
<?php
namespace App\Providers;
use App\Services\YouTube;
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 new YouTube();
});
}
}