MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / getCurrentBindingKey

Function getCurrentBindingKey

packages/context/src/inject-config.ts:130–133  ·  view source on GitHub ↗

* Get the key for the current binding on which dependency injection is * performed * @param session - Resolution session

(session: ResolutionSession)

Source from the content-addressed store, hash-verified

128 * @param session - Resolution session
129 */
130function getCurrentBindingKey(session: ResolutionSession) {
131 // The current binding is not set if `instantiateClass` is invoked directly
132 return session.currentBinding?.key;
133}
134
135/**
136 * Get the target binding key from which the configuration should be resolved

Callers 1

getTargetBindingKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected