Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bin/console debug:config XXXX does't work when the config is not defined in the **application** #41121

Copy link
Copy link
Closed
@lyrixx

Description

@lyrixx
Issue body actions

Symfony version(s) affected: 4.4.*

Description

root /app bin/console debug:config JMSSerializerBundle

In ConfigDebugCommand.php line 92:
                                                                          
  The extension with alias "jms_serializer" does not have configuration.  
                                                                          

debug:config [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<name> [<path>]]

How to reproduce

Drop all the configuration of a bundle

Possible Solution

Dump the real configuration, even if the app definition does not exists.

Additional context

root /app bin/console debug:config --help
Description:
  Dumps the current configuration for an extension

The help says it dump the currentconfiguration, it means the configuration defined in the application merged with the default one (I know it, I made this feature).

This line cause the issue:

|| !$config = array_filter($container->getExtensionConfig($name))

I can submit a PR to remove it if you are OK

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.