openapi-php-sdk
openapi-php-sdk copied to clipboard
Symfony: Environment variables not loaded before client initialization
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.