- DOI implementation wit unit testing
This commit is contained in:
parent
7f9bd089b1
commit
9b6a6469d7
20 changed files with 2128 additions and 360 deletions
44
app/Providers/DoiServiceProvider.php
Normal file
44
app/Providers/DoiServiceProvider.php
Normal file
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
/**
|
||||
* Visual Studio Code.
|
||||
* User: kaiarn
|
||||
* Date: 19.02.21
|
||||
*/
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Tethys\Utils\DoiService;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class DoiServiceProvider extends ServiceProvider
|
||||
{
|
||||
protected $defer = true;
|
||||
|
||||
/**
|
||||
* Bootstrap the application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
$this->app->singleton('App\Interfaces\DoiInterface', function ($app) {
|
||||
return new DoiService();
|
||||
});
|
||||
}
|
||||
|
||||
public function provides()
|
||||
{
|
||||
return [DoiService::class];
|
||||
}
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue