Skip to content

Commit

Permalink
Pass both containers (#5931)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Mar 24, 2024
1 parent d3d3e31 commit a38d1b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/generate/GenerateCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ 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->container, $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 a38d1b7

Please sign in to comment.