Skip to content

Commit

Permalink
Revert #11046
Browse files Browse the repository at this point in the history
This reverts commit a345e00.
  • Loading branch information
jasonvarga committed Dec 10, 2024
1 parent ed9161d commit 55977f3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Providers/ExtensionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,9 @@ protected function registerAppExtensions($folder, $requiredClass)
return;
}

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

$fqcn = $this->app->getNamespace()."{$namespace}\\{$class}";
$fqcn = $this->app->getNamespace()."{$folder}\\{$class}";
if (is_subclass_of($fqcn, $requiredClass)) {
$fqcn::register();
}
Expand Down

0 comments on commit 55977f3

Please sign in to comment.