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

服务没有延迟加载 #10

Open
hackbeex opened this issue Nov 19, 2017 · 0 comments
Open

服务没有延迟加载 #10

hackbeex opened this issue Nov 19, 2017 · 0 comments

Comments

@hackbeex
Copy link

hackbeex commented Nov 19, 2017

readme.md 中,有说明在 register 函数中根据运行环境变量来注册服务;
但是,该服务没有使用 protected $defer = true; 进行延迟加载,导致即使不在 register 注册,服务也自动加载上去了;
也就是说生产环境也加载了这个没必要的服务。
我实际使用就是我描述的这个现象。
我使用的版本是0.6.0

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

1 participant