Skip to content

Commit

Permalink
Restore original command
Browse files Browse the repository at this point in the history
This reverts commit 8f0af57.
  • Loading branch information
aerni committed Feb 14, 2025
1 parent c00010e commit 71989f5
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/Console/Commands/InstallEloquentDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ class InstallEloquentDriver extends Command
*/
protected $description = "Install & configure Statamic's Eloquent Driver package";

protected static array $additionalRepositories = [];

/**
* Execute the console command.
*
Expand Down Expand Up @@ -126,11 +124,6 @@ protected function repositories(): array
);
}

public static function addRepository(string $key, array $config): void
{
self::$additionalRepositories[$key] = $config;
}

protected function allRepositories(): Collection
{
return collect([
Expand All @@ -152,9 +145,7 @@ protected function allRepositories(): Collection
'taxonomies' => 'Taxonomies',
'terms' => 'Terms',
'tokens' => 'Tokens',
])
->merge(Arr::map(self::$additionalRepositories, fn ($value) => $value['title']))
->sort();
]);
}

protected function repositoryHasBeenMigrated(string $repository): bool
Expand Down Expand Up @@ -214,9 +205,6 @@ protected function repositoryHasBeenMigrated(string $repository): bool

case 'tokens':
return config('statamic.eloquent-driver.tokens.driver') === 'eloquent';

case $repository:
return Arr::get(self::$additionalRepositories, "{$repository}.hasBeenMigrated");
}
}

Expand Down

0 comments on commit 71989f5

Please sign in to comment.