Skip to content

Commit 9412502

Browse files
authored
bring back Lumen support
1 parent 405ff5f commit 9412502

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/ExcelServiceProvider.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,16 @@ public function boot()
4040
], 'config');
4141
}
4242
}
43-
44-
$this->app->booted(function () {
43+
44+
if ($this->app instanceof \Illuminate\Foundation\Application) {
45+
// Laravel
46+
$this->app->booted(function () {
47+
$this->app->make(SettingsProvider::class)->provide();
48+
});
49+
} else {
50+
// Lumen
4551
$this->app->make(SettingsProvider::class)->provide();
46-
});
52+
}
4753
}
4854

4955
/**

0 commit comments

Comments
 (0)