finish acceptance tests and refactor IotaCodesClient to service container

This commit is contained in:
Richard Morgan
2017-05-15 22:14:14 -04:00
parent 2c8c692890
commit e4e17dedc5
13 changed files with 338 additions and 24 deletions

View 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();
});
}
}