Skip to content

Commit

Permalink
Merge pull request #97 from savannabits/4.x-dev
Browse files Browse the repository at this point in the history
Bug Fix: Registering Module Service Providers was not working on windows
  • Loading branch information
coolsam726 authored Apr 19, 2024
2 parents a9bab4a + 66acb0e commit 9e3eee6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ModulesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function packageRegistered(): void
public function attemptToRegisterModuleProviders(): void
{
// It is necessary to register them here to avoid late registration (after Panels have already been booted)
$providers = glob(config('modules.paths.modules') . '/*/*/Providers/*ServiceProvider.php');
$providers = glob(config('modules.paths.modules') . '/*' . DIRECTORY_SEPARATOR . '*' . DIRECTORY_SEPARATOR . 'Providers' . DIRECTORY_SEPARATOR . '*ServiceProvider.php');
foreach ($providers as $provider) {
$namespace = FilamentModules::convertPathToNamespace($provider);
$module = str($namespace)->before('\Providers\\')->afterLast('\\')->toString();
Expand Down

0 comments on commit 9e3eee6

Please sign in to comment.