2024-10-23 17:00:42 +08:00
|
|
|
package test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/Superdanda/hade/framework"
|
|
|
|
"github.com/Superdanda/hade/framework/provider/app"
|
|
|
|
"github.com/Superdanda/hade/framework/provider/env"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2024-10-24 16:15:06 +08:00
|
|
|
BasePath = "C:\\Users\\lulz1\\GolandProjects\\framework1"
|
2024-10-23 17:00:42 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func InitBaseContainer() framework.Container {
|
|
|
|
// 初始化服务容器
|
|
|
|
container := framework.NewHadeContainer()
|
|
|
|
// 绑定App服务提供者
|
|
|
|
container.Bind(&app.HadeAppProvider{BaseFolder: BasePath})
|
|
|
|
// 后续初始化需要绑定的服务提供者...
|
|
|
|
container.Bind(&env.HadeTestingEnvProvider{})
|
|
|
|
return container
|
|
|
|
}
|