From ea0461cc307f19c773d9a100b99b2a271cf0e5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Tue, 25 Jun 2019 13:46:11 +0800 Subject: [PATCH] Added proxy class. --- zh/quick-start/questions.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/zh/quick-start/questions.md b/zh/quick-start/questions.md index 6ff716366..f2feeb425 100644 --- a/zh/quick-start/questions.md +++ b/zh/quick-start/questions.md @@ -17,4 +17,28 @@ swoole.use_shortname = Off swoole.use_shortname = 'Off' ``` -> 注意该配置必须于 php.ini 内配置,无法通过 ini_set() 函数来重写 \ No newline at end of file +> 注意该配置必须于 php.ini 内配置,无法通过 ini_set() 函数来重写 + +## 代理类缓存 + +代理类缓存一旦生成,将不会再重新覆盖。所以当你修改了已经生成代理类的文件时,需要手动清理。 + +代理类位置如下 +``` +runtime/container/proxy/ +``` + +清理命令 +``` +php bin/hyperf.php di:init-proxy +``` + +所以单测命令可以使用一下代替 +``` +php bin/hyperf.php di:init-proxy && composer test +``` + +同理,启动命令可以使用一下代替 +``` +php bin/hyperf.php di:init-proxy && php bin/hyperf.php start +``` \ No newline at end of file