Skip to content

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

@jpauli

Description

@jpauli

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