{"record":{"id":"bd077aab3c4a0332","repo":"symfony/symfony","slug":"no-extensions-with-configuration-available-for-s","errorCode":null,"errorMessage":"No extensions with configuration available for \"%s\".","messagePattern":"No extensions with configuration available for \"(.+?)\"\\.","errorType":"console","errorClass":"LogicException","httpStatus":null,"severity":"error","filePath":"src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php","lineNumber":156,"sourceCode":"            $distance = levenshtein($name, $extension->getAlias());\n\n            if ($distance < $minScore) {\n                $guess = $extension->getAlias();\n                $minScore = $distance;\n            }\n        }\n\n        if (!str_ends_with($name, 'Bundle')) {\n            $message = \\sprintf('No extensions with configuration available for \"%s\".', $name);\n        } else {\n            $message = \\sprintf('No extension with alias \"%s\" is enabled.', $name);\n        }\n\n        if (isset($guess) && $minScore < 3) {\n            $message .= \\sprintf(\"\\n\\nDid you mean \\\"%s\\\"?\", $guess);\n        }\n\n        throw new LogicException($message);\n    }\n\n    public function validateConfiguration(ExtensionInterface $extension, mixed $configuration): void\n    {\n        if (!$configuration) {\n            throw new \\LogicException(\\sprintf('The extension with alias \"%s\" does not have its getConfiguration() method setup.', $extension->getAlias()));\n        }\n\n        if (!$configuration instanceof ConfigurationInterface) {\n            throw new \\LogicException(\\sprintf('Configuration class \"%s\" should implement ConfigurationInterface in order to be dumpable.', get_debug_type($configuration)));\n        }\n    }\n\n    private function initializeBundles(): array\n    {\n        // Re-build bundle manually to initialize DI extensions that can be extended by other bundles in their build() method\n        // as this method is not called when the container is loaded from the cache.\n        $kernel = $this->getApplication()->getKernel();","sourceCodeStart":138,"sourceCodeEnd":174,"githubUrl":"https://github.com/symfony/symfony/blob/698e28026c22cf35d032cdb6e800db48b1535790/src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php#L138-L174","documentation":"Thrown by AbstractConfigCommand::findExtension (used by debug:config / config:dump-reference) when the supplied name does not end with 'Bundle' and matches no kernel alias, no bundle name, and no registered container extension. The command tries to suggest a close match via levenshtein before throwing.","triggerScenarios":"Running `php bin/console debug:config <name>` where <name> is not a registered extension alias and does not end in 'Bundle' — e.g. a typo like 'framwork', or a name for a bundle/extension that isn't registered in this environment.","commonSituations":"Typo in the extension alias. The bundle providing the extension isn't registered in kernels.php / bundles.php. Querying an extension only available in another environment (e.g. dev-only bundle from prod).","solutions":["Check the 'Did you mean' suggestion in the error output and use that alias.","Run `php bin/console debug:config` with no argument to list all available extension aliases.","Ensure the bundle providing the extension is registered in config/bundles.php for the current environment."],"exampleFix":"# before\nphp bin/console debug:config framwork\n\n# after (use correct alias)\nphp bin/console debug:config framework","handlingStrategy":"validation","validationCode":"use Symfony\\Component\\Console\\Application;\n// List valid aliases before invoking debug:config programmatically\n$aliases = array_keys($container->getExtensions());\nif (!in_array($name, $aliases, true)) {\n    throw new \\InvalidArgumentException(sprintf('Unknown extension \"%s\". Known: %s', $name, implode(', ', $aliases)));\n}","typeGuard":null,"tryCatchPattern":"try {\n    $command->run(new ArrayInput(['name' => $name]), $output);\n} catch (\\LogicException $e) {\n    if (str_contains($e->getMessage(), 'No extensions with configuration')) {\n        // list aliases and prompt for correction\n    }\n    throw $e;\n}","preventionTips":["Run debug:config with no argument to enumerate aliases.","Confirm the bundle/extension is registered in bundles.php for the active environment."],"tags":["console","config","extension","typo","bundle"],"analyzedSha":"698e28026c22cf35d032cdb6e800db48b1535790","analyzedAt":"2026-08-06T23:40:49.025Z","schemaVersion":2},"datasetVersion":"2026-08-07T03:17:09.362Z"}