Skip to content

Commit

Permalink
🩹 Fix path keys for acf:upgrade command (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Mar 1, 2024
1 parent f70d3b1 commit e108472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AcfComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function registerPath(string $path, ?string $namespace = null): array
$folders.$className
);

$this->paths[basename($path)][] = $composer;
$this->paths[$path][] = $composer;

$this->register($composer, $namespace);
}
Expand Down Expand Up @@ -186,7 +186,7 @@ public function registerPlugin(string $path, string $namespace): void

$this->registerPath($path, $namespace);

$this->plugins[$namespace] = dirname($path);
$this->plugins[$namespace] = $path;
}

/**
Expand Down

0 comments on commit e108472

Please sign in to comment.