mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-03 04:08:01 +08:00
Added proxy class.
This commit is contained in:
parent
0ca922942a
commit
ea0461cc30
@ -17,4 +17,28 @@ swoole.use_shortname = Off
|
||||
swoole.use_shortname = 'Off'
|
||||
```
|
||||
|
||||
> 注意该配置必须于 php.ini 内配置,无法通过 ini_set() 函数来重写
|
||||
> 注意该配置必须于 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
|
||||
```
|
Loading…
Reference in New Issue
Block a user