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

不兼容dependencies配置 #12

Closed
Sgenmi opened this issue Sep 1, 2020 · 3 comments · Fixed by #18
Closed

不兼容dependencies配置 #12

Sgenmi opened this issue Sep 1, 2020 · 3 comments · Fixed by #18

Comments

@Sgenmi
Copy link

Sgenmi commented Sep 1, 2020

是否可以兼容 dependencies配置

@Reasno
Copy link
Member

Reasno commented Sep 1, 2020

兼容

@Sgenmi
Copy link
Author

Sgenmi commented Sep 2, 2020

image
经测试,$this->get(\App\Services\Impl\EsInterface::class) 拿不到

如果配置了 dependencies 还要用 $app->getContainer()->set(EsInterface::class, new EsService()); 手动注入。那配置意义好像不大。

@limingxinleo
Copy link
Member

我试试看。。

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 a pull request may close this issue.

3 participants