2016-07-14 08:47:50 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2018-08-19 11:08:16 +00:00
|
|
|
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 () {
|
2018-08-19 11:08:16 +00:00
|
|
|
return app()->make(YouTubeService::class);
|
2016-07-14 08:47:50 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|