koel/app/Providers/MediaCacheServiceProvider.php

32 lines
544 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
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
app()->singleton('MediaCache', function () {
2018-08-19 14:56:56 +00:00
return new MediaCacheService();
2017-01-06 03:04:08 +00:00
});
}
}