Skip to content

Commit 632a7fe

Browse files
committed
feat: alias EntityManager to sql-entities
1 parent 2dfca51 commit 632a7fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ServiceProvider extends IlluminateServiceProvider implements DeferrablePro
1919
#[Override]
2020
public function provides(): array
2121
{
22-
return [EntityManager::class]; // @codeCoverageIgnore
22+
return [EntityManager::class, 'sql-entities']; // @codeCoverageIgnore
2323
}
2424

2525
#[Override]
@@ -28,6 +28,8 @@ public function register(): void
2828
$this->app->singleton(EntityManager::class, function (Application $app) {
2929
return new EntityManager($this->getEntities($app), $app->make('db'));
3030
});
31+
32+
$this->app->alias(EntityManager::class, 'sql-entities');
3133
}
3234

3335
/** @return Collection<int, Entity> */

0 commit comments

Comments
 (0)