1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 21:54:03 +00:00

Bind bootstrappers properly

This commit is contained in:
Samuel Štancl 2019-09-07 20:05:04 +02:00
parent d9f4ba133a
commit 8c69d7847e

View file

@ -107,9 +107,8 @@ class TenancyServiceProvider extends ServiceProvider
return $app[TenantManager::class]->currentTenant();
});
// todo foreach bootstrappers, singleton
foreach ($this->app['config']['tenancy.bootstrappers'] as $bootstrapper) {
$this->app->singleton($bootstrapper); // todo key?
$this->app->singleton($bootstrapper);
}
$this->app->singleton(Migrate::class, function ($app) {