Method |
Description |
|
__get ( $key ) |
Magic property access |
|
__isset ( $key ) |
Magic property access for isset |
|
factory ( $key, $factory ) |
Registers a {@link Factory} or closure to be invoked on the first lookup |
|
handle ( $key ) |
Creates a handle to a particular registry key |
|
isRegistered ( $key ) |
Returns whether an object |
|
lookup ( $key, $closure = null ) : Object |
Looks up a key in the registry, with an optional closure that that will
be executed and the result stored if the key doesn't exist (and there is no trigger). |
|
register ( $key, $object ) |
Registers an object for later retrieval by key. Any existing key is overwritten. |
|
trigger ( $keys, $callable ) |
Sets a closure that is called on a lookup miss |
|