Skip to content

Commit

Permalink
1.) added: DeferrableProvider
Browse files Browse the repository at this point in the history
2.) added: standardization
3.) added: code format

Signed-off-by: Oskars Germovs <[email protected]>
  • Loading branch information
Faks committed Oct 18, 2024
1 parent d0e6830 commit b882644
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/InvoicesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

namespace SolumDeSignum\Invoices;

use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;

class InvoicesServiceProvider extends ServiceProvider
class InvoicesServiceProvider extends ServiceProvider implements DeferrableProvider
{
/**
* Perform post-registration booting of services.
Expand Down Expand Up @@ -39,12 +40,9 @@ public function register(): void
);

// Register the service the package provides.
$this->app->singleton(
'package-translator-loader',
function ($app) {
return new Invoices($app);
}
);
$this->app->singleton('invoice', function ($app) {
return new Invoices($app);
});
}

/**
Expand Down

0 comments on commit b882644

Please sign in to comment.