const classafIoc::IocHelper

sys::Obj
  afIoc::IocHelper

Little methods to help ease your IoC development.

debugOperation

Source

static Obj? debugOperation(|->Obj? operation)

Runs the given function with extensive IoC logging turned on. Example usage:

IocHelper.debugOperation |->| {
  registry.dependencyByType(MyService#)
} 
locals

Source

static Str:Obj? locals()

A read only copy of the Actor.locals map with the keys sorted alphabetically. Handy for debugging. Example:

IocHelper.locals.each |value, key| {
  echo("$key = $value")
}