Skip to content

Symfony: Environment variables not loaded before client initialization #7

@francescobianco

Description

@francescobianco

Labels: config, symfony, bug
Context: Symfony 6.4 with Dotenv component

Description:
When initializing the Openapi SDK in a Symfony service during kernel boot, the .env values are not yet loaded, causing missing credentials or base URL.

Expected:
Defer initialization until after environment variables are fully resolved (e.g. during container compilation).

Impact:
Impossible to use different API keys for dev/staging/prod environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions