HardWire::Root
Inherits HardWire::Container
A pre-made Container, designed to provide a concrete in-namespace module to generate documentation from.
NOTE: All of the methods in this library are designed to operate inside the container class, so you cannot use this container for actual dependency injection
Constants
Store all registrations, which are mainly used to give nice errors for duplicate registrations
Users can also run their own checks at runtime for length, structure, etc.
Class methods
Interrogate the container for a registration
Macros
Resolve a dependency from a class and a string tag
This macro does the legwork of mangling the dynamic-looking call into the statically-defined resolve! method
NOTE: This method does not protect you from unregistered dependencies, since it relies on
directly resolving the resolve! method. If you need safety - use registered?