koel/app/Providers/MediaServiceProvider.php
2015-12-13 12:42:28 +08:00

31 lines
509 B
PHP

<?php
namespace App\Providers;
use App\Services\Media;
use Illuminate\Support\ServiceProvider;
class MediaServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
app()->singleton('Media', function() {
return new Media();
});
}
}