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

config:dump-reference does not see my own tree anymore #34756

Copy link
Copy link
Closed
@jpauli

Description

@jpauli
Issue body actions

Symfony version(s) affected: 4.4.1

Description
If I create a config tree not in a bundle, f.e in my Kernel, then the config:dump-reference command does not see it. It used to see it in Symfony 4.3 and before, with "bundle name" simply not set

How to reproduce
Create a Kernel that is an Extension and a Configuration.
Implement the methods

use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;

class Kernel extends BaseKernel implements ExtensionInterface, ConfigurationInterface
{
       public function load(array $configs, ContainerBuilder $container)
	{
		$processor = new Processor();
		$config    = $processor->processConfiguration($this, $configs);
	}

	public function getNamespace()
	{
		return '';
	}

	public function getXsdValidationBasePath()
	{
		return false;
	}

	public function getAlias()
	{
		return 'foobar';
	}

	public function getConfigTreeBuilder()
	{
		$tree = new TreeBuilder($this->getAlias());
                // do something
                return $tree;
        }
}

Possible Solution

Additional context

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.