2017-08-27 04:44:53 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
2018-04-15 02:05:41 +09:00
|
|
|
use App\MetadataResolver\MetadataResolver;
|
2017-08-27 04:44:53 +09:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
2018-04-15 02:05:41 +09:00
|
|
|
$this->app->singleton(MetadataResolver::class, function ($app) {
|
|
|
|
return new MetadataResolver();
|
|
|
|
});
|
2017-08-27 04:44:53 +09:00
|
|
|
}
|
|
|
|
}
|