8000 `bin/console debug:config XXXX` does't work when the config is not defined in the **application** · Issue #41121 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
bin/console debug:config XXXX does't work when the config is not defined in the **application** #41121
Closed
@lyrixx

Description

@lyrixx

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

      0