Skip to content

Commit

Permalink
always register custom stripe manager
Browse files Browse the repository at this point in the history
  • Loading branch information
repl6669 committed Mar 15, 2024
1 parent b93ea24 commit 73fb96d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/LunarApiStripeAdapterServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ public function register(): void
*/
public function boot(): void
{
// Testing
if ($this->app->environment('testing')) {
$this->app->singleton(
'gc:stripe',
fn (Application $app) => $app->make(StripeManager::class),
);
}
$this->app->singleton(
'gc:stripe',
fn (Application $app) => $app->make(StripeManager::class),
);

$this->loadRoutesFrom(__DIR__.'/../routes/webhooks.php');

Expand Down

0 comments on commit 73fb96d

Please sign in to comment.