Skip to content

Commit

Permalink
Fix generator completion
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Mar 24, 2024
1 parent accaf08 commit 48e0f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/generate/GenerateCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function generate(string $generator = '', $options = ['replace' => false,
public function generatorNameComplete(CompletionInput $input, CompletionSuggestions $suggestions): void
{
if ($input->mustSuggestArgumentValuesFor('generator')) {
$application = (new ApplicationFactory($this->container, $this->logger()))->create();
$application = (new ApplicationFactory($this->drush_container, $this->logger()))->create();
foreach ($application->all() as $name => $command) {
if ($command->isEnabled() && !$command->isHidden()) {
$suggestions->suggestValue($name);
Expand Down

0 comments on commit 48e0f15

Please sign in to comment.