1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 09:57:01 +00:00

.DI() to ConfigureContainer(...builders)

Former-commit-id: 169671a8b5b706dc8f136e68c1a060f27a2c421b
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-04-17 15:56:36 +03:00
parent eafa63da50
commit 1bb76853a9
12 changed files with 108 additions and 65 deletions

View File

@@ -44,7 +44,7 @@ func newApp(subRouter router.Party, container *hero.Container) *Application {
//
// Example: `New(app.Party("/todo"))` or `New(app)` as it's the same as `New(app.Party("/"))`.
func New(party router.Party) *Application {
return newApp(party, party.DI().Container)
return newApp(party, party.ConfigureContainer().Container)
}
// Configure creates a new controller and configures it,