MCPcopy Create free account
hub / github.com/kataras/iris / attachInjector

Method attachInjector

mvc/controller.go:376–381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

374}
375
376func (c *ControllerActivator) attachInjector() {
377 if c.injector == nil {
378 partyCountParams := macro.CountParams(c.app.Router.GetRelPath(), *c.app.Router.Macros())
379 c.injector = c.app.container.Struct(c.Value, partyCountParams)
380 }
381}
382
383// Activated can be called to skip the internal method parsing.
384func (c *ControllerActivator) Activated() bool {

Callers 2

markAsWebsocketMethod · 0.95
handlerOfMethod · 0.95

Calls 4

CountParamsFunction · 0.92
GetRelPathMethod · 0.65
MacrosMethod · 0.65
StructMethod · 0.65

Tested by

no test coverage detected