25 lines
499 B
PHP
25 lines
499 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\App;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use LDC\MESBR\MesBr;
|
|
|
|
class MesBrApiServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
App::singleton('mesBrAPI', function () {
|
|
return new MesBr(
|
|
config('mesbr.endpoint'),
|
|
config('mesbr.camp')
|
|
);
|
|
});
|
|
}
|
|
}
|