Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第一次启动的时候 翻译组件报错了 #22

Open
four-li opened this issue Jul 11, 2021 · 5 comments
Open

第一次启动的时候 翻译组件报错了 #22

four-li opened this issue Jul 11, 2021 · 5 comments

Comments

@four-li
Copy link

four-li commented Jul 11, 2021

[CRITICAL] Call to undefined method Hyperf\Translation\TranslatorFactory::trans()[346] in /data/vendor/kakuilan/hyperf-apihelper/src/Validation/Validator.php
[CRITICAL] #0 [internal function]: Hyperf\Apihelper\Validation\Validator->rule_enum()
#1 /data/vendor/kakuilan/hyperf-apihelper/src/Validation/Validator.php(172): call_user_func_array()
#2 /data/runtime/container/proxy/App_Middleware_ApiValidationMiddleware.proxy.php(217): Hyperf\Apihelper\Validation\Validator->validate()

@kakuilan
Copy link
Owner

休假中,过两天再看看

@kakuilan
Copy link
Owner

swoole、hyperf版本分别是多少?

@kakuilan
Copy link
Owner

我这边没问题
swoole 4.5.9
hyperf 2.1.1
hyperf/translation 2.1.0

@four-li
Copy link
Author

four-li commented Jul 15, 2021

translation: 2.1.0
hyperf: 2.1.0
swoole: 4.6.7

起初我担心是受项目里其它问题影响,于是我重新重新创建项目(以上环境)安装apihelper,还是会有这个问题
Validator�里只要用到了如enum自定义规则调用了trans就报错,。

@kakuilan
Copy link
Owner

打包你的源码传上来我看看?

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

No branches or pull requests

2 participants