39 lines
844 B
PHP
39 lines
844 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Interfaces\APIInterface;
|
|
use App\Interfaces\AuthApps;
|
|
use App\Services\APIService;
|
|
use App\Services\AuthService;
|
|
use Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
if ($this->app->environment() !== 'production') {
|
|
$this->app->register(IdeHelperServiceProvider::class);
|
|
}
|
|
$this->app->bind(AuthApps::class, AuthService::class);
|
|
$this->app->bind(APIInterface::class, APIService::class);
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
//
|
|
}
|
|
}
|