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

Try fixing Queue issue

This commit is contained in:
Samuel Štancl 2020-06-13 13:24:49 +02:00
parent 0442be42de
commit 2a1e2a727e
2 changed files with 18 additions and 5 deletions

View file

@ -41,6 +41,10 @@ class TenancyServiceProvider extends ServiceProvider
// Make sure bootstrappers are stateful (singletons).
foreach ($this->app['config']['tenancy.bootstrappers'] ?? [] as $bootstrapper) {
if (method_exists($bootstrapper, '__constructStatic')) {
$bootstrapper::__constructStatic($this->app);
}
$this->app->singleton($bootstrapper);
}