mirror of
https://github.com/koel/koel
synced 2024-12-01 08:19:18 +00:00
16 lines
345 B
PHP
16 lines
345 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Services\YouTubeService;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class YouTubeServiceProvider extends ServiceProvider
|
|
{
|
|
public function register(): void
|
|
{
|
|
app()->singleton('YouTube', static function (): YouTubeService {
|
|
return app(YouTubeService::class);
|
|
});
|
|
}
|
|
}
|