Skip to content

[TwigComponent] Configuration with PHP ConfigBuilders fails #1304

@rarila

Description

@rarila

I use configuration with PHP ConfigBuilders and tried to add configuration for symfony/ux. That failed, TwigComponentConfig could not be loaded.

So I was digging around (not knowing anything about it), comparing how others do it and finally found a working solution:

I created

ux/src/TwigComponent/src/DependencyInjection/Configuration.php

with content like this

class Configuration implements ConfigurationInterface
{
}

and then moved the getConfigTreeBuilder() method from

ux/src/TwigComponent/src/DependencyInjection/TwigComponentExtension.php

into that class.

I don’t know if this the correct way, if that would break anything else, but at least now TwigComponentConfig gets built and configuration works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions