Skip to content

Support for converting none existing enums and constants #54

Open
@alexander-schranz

Description

@alexander-schranz

I'm using the config transformer to provide all Yaml based config as PHP Based config.

The following project using a enum: https://github.com/symfony/recipes-contrib/blob/b9d7fb6be96bde2225c51e3cdab23f5fa6c2ca10/datana-gmbh/logz-io-handler/1.7/config/packages/datana_logz_io_handler.yaml#L9

The config transformer seemst to validate if that enum exists and so my converting for https://github.com/schranz-php-recipes/symfony-recipes-php-contrib fails currently:

The file "/private/tmp/symfony-recipes-php-contrib/datana-gmbh/logz-io-handler/1.7/config/packages/datana_logz_io_handler.yaml" does not contain valid YAML: The enum "Inpsyde\LogzIoMonolog\Enum\Host::EuCentral1" is not define d at line 9 (near "$host: !php/enum Inpsyde\LogzIoMonolog\Enum\Host::EuCent ral1"). In Inline.php line 597: The enum "Inpsyde\LogzIoMonolog\Enum\Host::EuCentral1" is not defined at li ne 9 (near "$host: !php/enum Inpsyde\LogzIoMonolog\Enum\Host::EuCentral1").

Is there a option to not validate existing of constants and enums.

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