koel/app/Providers/YouTubeServiceProvider.php

17 lines
345 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
{
2018-08-29 04:06:17 +00:00
public function register(): void
2016-07-14 08:47:50 +00:00
{
2018-08-29 04:06:17 +00:00
app()->singleton('YouTube', static function (): YouTubeService {
return app(YouTubeService::class);
2016-07-14 08:47:50 +00:00
});
}
}