swoft-cloud / swoft

🚀 PHP Microservice Full Coroutine Framework
https://swoft.org
Apache License 2.0
5.58k stars 788 forks source link

annocation 收集,Bean初始化的问题 #464

Closed alukaa closed 5 years ago

alukaa commented 5 years ago
Q A
Bug report? no
Feature request? yes
Swoft version 1.0.0
Swoole version 4.0.3
PHP version 7.2.10
Runtime environment Docker

Details

swoft httpServer start的时候有没有办法可以加载除了/vendor/swoft和/app之外的文件的annocation, 比如说我自己写了一个包需要在初始化的时候加载一些Bean,有没有什么好的方法 image

// paste output here

Provide minimal script to reproduce the issue

// paste code
limingxinleo commented 5 years ago

https://doc.swoft.org/master/zh-CN/core/component.html