pos-gis/app/Providers/AppServiceProvider.php

39 lines
844 B
PHP
Raw Permalink Normal View History

2024-10-07 06:13:42 +00:00
<?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()
{
//
}
}