Codeception / Codeception/module-zf2

Does not load database dump before ZF bootstrap

未关闭
#7 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
2
派生
3
PR 合并指标
30 天内没有已合并 PR

描述

so if you need a database when bootstrapping application its database will be empty. maybe a possible fix would not create an app here https://github.com/Codeception/module-zf2/blob/master/src/Codeception/Lib/Connector/ZF2.php#L43 but just load service manager or load modules without bootstrapping and bootstrap before the request. We need a service manager to get services when initializing, for example, get doctrine.

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 src/Codeception/Lib/Connector/ZF2.php 第 43 行附近开始,这里会创建应用程序,并跟踪 bootstrap 和数据库转储的设置顺序。检查 service manager 和模块是如何初始化的,包括访问 Doctrine 等服务。完成的标准是在 request bootstrap 之前加载数据库转储,同时确保 service manager 在初始化期间仍然可用。

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
backend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。