Skip to content

Commit

Permalink
Patches duplicate discovery.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidan-casey committed Jun 3, 2024
1 parent 7b39aca commit f48a889
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Bootstraps/DiscoveryLocationBootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ private function discoverAppNamespaces(): array
$discoveredLocations = [];

foreach ($namespaceMap as $namespace => $path) {
// TODO: Refactor before v1!
// This was added by Aidan Casey on June 3rd, 2024.
// It was added as a workaround to console being discovered twice.
if ($namespace === 'Tempest\\Console\\') {
continue;
}

$path = PathHelper::make($this->appConfig->root, $path);

$discoveredLocations[] = new DiscoveryLocation($namespace, $path);
Expand Down

0 comments on commit f48a889

Please sign in to comment.