walkor / walkor/webman

App::resolveMethodDependencies 函数BUG

Open
#441 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
2.7k
Forks
251
PR merge metrics
No merged PRs in 30d

Description

![Image](https://github.com/user-attachments/assets/31149c33-55f2-46c6-baf7-3c0450bc2e1f)

![Image](https://github.com/user-attachments/assets/d2c39250-c0ec-4301-aac3-bda04e9705c8)

![Image](https://github.com/user-attachments/assets/8abbfc6e-ec35-40ea-87a9-fe45033e4137)

![Image](https://github.com/user-attachments/assets/886f4d80-49fc-4878-82ac-0b13e41acecf)

如上图所示,我在 action 参数中注入一个 Foo 实例,Foo 的构造函数需要两个参数,所以我在 dependence 中定义了 Foo 的工厂函数用来对 Foo 进行实例化,但实际上,![Image](https://github.com/user-attachments/assets/3f9e5945-40ff-4417-b263-b36de5aacd26) 根据这里的逻辑,这个工厂函数不会被调用。

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.