finish acceptance tests and refactor IotaCodesClient to service container
This commit is contained in:
20
app/Libraries/IotaCodes/IotaCodesServiceProvider.php
Normal file
20
app/Libraries/IotaCodes/IotaCodesServiceProvider.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Libraries\IotaCodes;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class IotaCodesServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->singleton('IotaCodesClient', function ($app) {
|
||||
return Client::create();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user