Command/ConvertCommand.php
protected function chooseBundle(OutputInterface $output)
    {
        $bundles = $this->getContainer()->get('kernel')->getBundles();

        $selectedBundle = $this->getHelperSet()->get('dialog')->ask(
            $output,
            '<info>Which bundle\'s config would you like to convert? </info>',
            null,
            array_keys($bundles)
        );

        if (!isset($bundles[$selectedBundle])) {
            throw UnknownBundleException::create($selectedBundle);
        }

        return $bundles[$selectedBundle];
    }
protected function chooseBundle(OutputInterface $output)
    {
        $bundles = $this->getContainer()->get('kernel')->getBundles();

        $selectedBundle = $this->getHelperSet()->get('dialog')->ask(
            $output,
            '<info>Which bundle\'s config would you like to convert? </info>',
            null,
            array_keys($bundles)
        );

        if (!isset($bundles[$selectedBundle])) {
            throw UnknownBundleException::create($selectedBundle);
        }

        return $bundles[$selectedBundle];
    }
Prompt the user to choose the bundle whose config they want to convert

@param  OutputInterface        $output
@return Bundle
@throws UnknownBundleException