Symfony: Environment variables not loaded before client initialization
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
调研方向
Start by locating the SDK’s Symfony integration and service initialization entry points, then trace when environment variables are resolved relative to client construction. Confirm the lifecycle behavior with the Symfony 6.4 and Dotenv context described in the issue. Done means credentials and the base URL are available when the client initializes across dev, staging, and production environments.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- PHP
- 星标
- 20
- 派生
- 3
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openapi/openapi-php-sdk 的其他 Issue
-
Improve PHPDoc Consistency Across the Codebase可能重新可做 @Seraphim200001 于 139 天前认领,目前没有进行中的 PR。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
openapi/openapi-php-sdk#36 · 3 条评论 ·
-
enhancement help wanted
难度 5/5 一周以上 新手友好度 25/100
openapi/openapi-php-sdk#34 ·
-
good first issue question
难度 5/5 一周以上 新手友好度 35/100
openapi/openapi-php-sdk#33 · 2 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
openapi/openapi-php-sdk#32 ·
-
help wanted question
难度 5/5 一周以上 新手友好度 25/100
openapi/openapi-php-sdk#31 ·
查看 openapi/openapi-php-sdk 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
WhatsApp link preview crawler is not detected as a bot可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
matomo-org/device-detector#8405 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 4 天内回复