Skip to content

[DI] [6.2] Environment Variable Processor enum: not working #48498

@ThomasLandauer

Description

@ThomasLandauer

Symfony version(s) affected

6.2.0

Description

I keep getting

Environment variables "enum:App\Enum\Foo:FOO" are never used. Please, check your container's configuration.

No matter which way I try:

  • services.php: $parameters->set() and $services-bind()
  • services.php: $services->set(...)->arg('$foo', '...')
  • #[Autowire('%env(enum:' . Foo::class . ':FOO)%')] on the property

How to reproduce

Is it working for anybody?

Possible Solution

No response

Additional Context

No response

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