mirror of
https://github.com/koel/koel
synced 2024-12-13 22:22:27 +00:00
32 lines
530 B
PHP
32 lines
530 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Providers;
|
||
|
|
||
|
use App\Services\MediaCache;
|
||
|
use Illuminate\Support\ServiceProvider;
|
||
|
|
||
|
class MediaCacheServiceProvider extends ServiceProvider
|
||
|
{
|
||
|
/**
|
||
|
* Bootstrap the application services.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function boot()
|
||
|
{
|
||
|
//
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Register the application services.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function register()
|
||
|
{
|
||
|
app()->singleton('MediaCache', function () {
|
||
|
return new MediaCache();
|
||
|
});
|
||
|
}
|
||
|
}
|