vpn.keks.cloud/app/Providers/AppServiceProvider.php

36 lines
669 B
PHP
Raw Normal View History

2020-11-07 15:09:36 +00:00
<?php
namespace App\Providers;
2020-11-08 02:07:10 +00:00
use App\Services\WGRest;
use GuzzleHttp\Client;
2020-11-07 15:09:36 +00:00
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
2020-11-08 02:07:10 +00:00
$this->app->singleton(WGRest::class, function ($app) {
$client = new Client(["base_uri"=>"http://home.kekskurse.de:8000/"]);
$wgrest = new WGRest($client, "secret");
return $wgrest;
});
2020-11-07 15:09:36 +00:00
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
2020-11-08 02:07:10 +00:00
2020-11-07 15:09:36 +00:00
}
}