Skip to content

Commit d0885be

Browse files
committed
refactor(app): Update MusicManager singleton registration
- Removed MusicManager::class from singletons array in AppServiceProvider.php - Added MusicManager::class to singletons in bootstrap/app.php
1 parent 996e3a8 commit d0885be

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final class AppServiceProvider extends ServiceProvider
3535
* @var array<class-string|int, class-string>
3636
*/
3737
public array $singletons = [
38-
MusicManager::class,
38+
// MusicManager::class,
3939
];
4040

4141
/**

bootstrap/app.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* @see https://github.com/guanguans/music-dl
1212
*/
1313

14+
use App\MusicManager;
1415
use Illuminate\Foundation\Configuration\Exceptions;
1516
use Illuminate\Log\LogManager;
1617
use LaravelZero\Framework\Application;
@@ -33,4 +34,7 @@
3334
}
3435
});
3536
})
37+
->withSingletons([
38+
MusicManager::class,
39+
])
3640
->create();

0 commit comments

Comments
 (0)