33 lines
793 B
PHP
33 lines
793 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Lib\MesBR;
|
|
use App\Lib\MesBROld;
|
|
use Illuminate\Support\Facades\App;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class MesBrServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
App::singleton('mesBR', function () {
|
|
return new MesBR(
|
|
config('app.MESBR_ENDPOINT'),
|
|
config('app.MESBR_REF_CAMP')
|
|
);
|
|
});
|
|
App::singleton('mesBR_Charcut', function () {
|
|
return new MesBROld(
|
|
config('app.MESBR_ENDPOINT'),
|
|
config('opbrcharcut.MESBR_REF_SITE'),
|
|
config('opbrcharcut.MESBR_REF_CAMP'),
|
|
);
|
|
});
|
|
}
|
|
}
|