koel/app/Providers/MediaCacheServiceProvider.php
2018-08-19 16:58:14 +02:00

31 lines
544 B
PHP

<?php
namespace App\Providers;
use App\Services\MediaCacheService;
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 MediaCacheService();
});
}
}