Skip to content

Commit 4521a12

Browse files
committed
Fixes singleton init
1 parent e0ad482 commit 4521a12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Integration/Laravel/SchemaMapperServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public function register(): void
2424
$this->app->singleton(
2525
TreeMapper::class,
2626
static fn(
27-
MapperBuilder $builder,
28-
) => $builder->build(),
27+
Application $app,
28+
) => $app->make(MapperBuilder::class)->build(),
2929
);
3030

3131
$this->app->singleton(

0 commit comments

Comments
 (0)