GBInjectable

Helper method to manually inject...

sort Weight: 10

Helper method to manually inject dependencies into this object. Useful when creating RefCounted objects that need injection outside of the normal flow.[br][br] [code]container[/code]: [i]GBCompositionContainer[/i] - The dependency container

Version: v5.0.0

STABLE

Inherits: RefCounted
Source: gb_injectable.gd
Parsing: AST-based for maximum accuracy with symbol typing


Methods

resolve_gb_dependencies

Signature: resolve_gb_dependencies(container: GBCompositionContainer) -> bool

[return]bool - True if dependencies were successfully resolved, false otherwise

Returns: bool

Parameters:

  • container: GBCompositionContainer

get_runtime_issues

Signature: get_runtime_issues() -> Array

This is abstract & body-less to avoid masking missing overrides with a default [] return.

Returns: Array


inject_dependencies

Signature: inject_dependencies(container: GBCompositionContainer) -> GBInjectable

container: GBCompositionContainer - The dependency container

Returns: GBInjectable

Parameters:

  • container: GBCompositionContainer