2017-06-09 02:28:26 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
2017-06-11 07:27:19 +08:00
|
|
|
use App\Services\AircraftService;
|
|
|
|
|
2017-06-09 02:28:26 +08:00
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
2017-06-11 07:27:19 +08:00
|
|
|
// bind all the app services...
|
|
|
|
$this->app->bind('App\Services\AircraftService', function($app) {
|
|
|
|
return new \App\Services\AircraftService();
|
|
|
|
});
|
|
|
|
|
|
|
|
$this->app->bind('App\Services\AircraftFareService', function($app) {
|
|
|
|
return new \App\Services\AircraftFareService();
|
|
|
|
});
|
2017-06-09 02:28:26 +08:00
|
|
|
}
|
|
|
|
}
|