我看TP6是可以composer安裝運行后,可以運行我的這個MyService類,webman能不能這樣運行我的擴展包類呀?
你這個MyService類也是你在TP6自己修改composer.json
你可以使用webman的DI實現(xiàn)。http://wtbis.cn/doc/webman/di.html 。
我寫的composer包就是使用DI實現(xiàn),進程啟動引入即可,連接:https://github.com/Tinywan/webman-permission
TP6的:服務注冊配置文件service.php
Webman的:進程啟動配置 config/bootstrap.php