Skip to content

Commit

Permalink
check container extension before getting alias
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenkhoo committed Oct 26, 2021
1 parent 447acf5 commit f0e1711
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -323,7 +323,9 @@ public function complete(CompletionInput $input, CompletionSuggestions $suggesti

foreach ($kernel->getBundles() as $bundle) {
$bundles[] = $bundle->getName();
$bundles[] = $bundle->getContainerExtension()->getAlias();
if ($bundle->getContainerExtension()) {
$bundles[] = $bundle->getContainerExtension()->getAlias();
}
}

$suggestions->suggestValues($bundles);
Expand Down

0 comments on commit f0e1711

Please sign in to comment.