koel/app/Providers/MediaServiceProvider.php

32 lines
510 B
PHP
Raw Normal View History

2015-12-13 04:42:28 +00:00
<?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()
{
2015-12-14 13:22:39 +00:00
app()->singleton('Media', function () {
2015-12-13 04:42:28 +00:00
return new Media();
});
}
}