Skip to content

Use Fork Process strategy to replace BetterReflection strategy#3634

Merged
assert6 merged 18 commits intohyperf:2.2from
assert6:2.2-develope
May 31, 2021
Merged

Use Fork Process strategy to replace BetterReflection strategy#3634
assert6 merged 18 commits intohyperf:2.2from
assert6:2.2-develope

Conversation

@assert6
Copy link
Copy Markdown
Member

@assert6 assert6 commented May 29, 2021

No description provided.

@huangzhhui huangzhhui changed the title 2.2 Use Fork Process strategy to replace BetterReflection strategy May 30, 2021
@weskiller
Copy link
Copy Markdown
Contributor

mark

return $classes;
// Get the class map of Composer loader
$classMap = array_merge($reflectionClassMap, $classMap);
$proxyManager = new ProxyManager($classMap, $proxyDir);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 ProxyManager 也必须要在子进程里完成么?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对, Ast 生成代理文件时用了Reflection

@assert6 assert6 merged commit ae9d1e3 into hyperf:2.2 May 31, 2021
@assert6 assert6 deleted the 2.2-develope branch June 9, 2021 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] 使用 fork 子进程扫描的方式替换 BetterReflection

3 participants