Skip to content

Commit

Permalink
[5.x] Fix subdirectory autodiscovery on Windows (#11246)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Dec 11, 2024
1 parent b51b692 commit 26751a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/ExtensionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ protected function registerAppExtensions($folder, $requiredClass)
}

foreach ($this->app['files']->allFiles($path) as $file) {
$relativePathOfFolder = str_replace(app_path('/'), '', $file->getPath());
$relativePathOfFolder = str_replace(app_path(DIRECTORY_SEPARATOR), '', $file->getPath());
$namespace = str_replace('/', '\\', $relativePathOfFolder);
$class = $file->getBasename('.php');

Expand Down

0 comments on commit 26751a9

Please sign in to comment.