koel/app/Providers/MediaCacheServiceProvider.php

17 lines
360 B
PHP
Raw Normal View History

2017-01-06 03:04:08 +00:00
<?php
namespace App\Providers;
2018-08-19 14:56:56 +00:00
use App\Services\MediaCacheService;
2017-01-06 03:04:08 +00:00
use Illuminate\Support\ServiceProvider;
class MediaCacheServiceProvider extends ServiceProvider
{
2018-08-29 04:06:17 +00:00
public function register(): void
2017-01-06 03:04:08 +00:00
{
2018-08-29 04:06:17 +00:00
app()->singleton('MediaCache', static function (): MediaCacheService {
return app(MediaCacheService::class);
2017-01-06 03:04:08 +00:00
});
}
}