Skip to content

Commit

Permalink
refactor(app): Update MusicManager singleton registration
Browse files Browse the repository at this point in the history
- Removed MusicManager::class from singletons array in AppServiceProvider.php
- Added MusicManager::class to singletons in bootstrap/app.php
  • Loading branch information
guanguans committed May 24, 2024
1 parent 996e3a8 commit d0885be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ final class AppServiceProvider extends ServiceProvider
* @var array<class-string|int, class-string>
*/
public array $singletons = [
MusicManager::class,
// MusicManager::class,
];

/**
Expand Down
4 changes: 4 additions & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* @see https://github.com/guanguans/music-dl
*/

use App\MusicManager;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Log\LogManager;
use LaravelZero\Framework\Application;
Expand All @@ -33,4 +34,7 @@
}
});
})
->withSingletons([
MusicManager::class,
])
->create();

0 comments on commit d0885be

Please sign in to comment.