mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
fix: use singleton instead of scoped for BC
This commit is contained in:
@@ -34,11 +34,9 @@ class FilamentServiceProvider extends ServiceProvider
|
||||
|
||||
public function register()
|
||||
{
|
||||
if (method_exists($this->app, 'scoped')) {
|
||||
$this->app->scoped(FilamentManager::class, function () {
|
||||
return new FilamentManager;
|
||||
});
|
||||
}
|
||||
$this->app->singleton(FilamentManager::class, function () {
|
||||
return new FilamentManager;
|
||||
});
|
||||
|
||||
$this->mergeConfigFrom(__DIR__ . '/../config/filament.php', 'filament');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user