inject()
inject(string $key, mixed $value) : void
Injects a value to the subject
Parameters
string | $key | The key to call the injectable |
mixed | $value | The injectable itself. |
Injectable is a key extensibility comnponent of the Pho Framework.
This is defined in pho-framework, and not pho-lib-graph, because it is not necessarily a core use-case of general purpose graphs.
inject(string $key, mixed $value) : void
Injects a value to the subject
string | $key | The key to call the injectable |
mixed | $value | The injectable itself. |