Gets the number of registered contexts.
The context count
Checks if a context is registered.
The context name
true if the context is registered
Gets all registered context names.
Array of context names
Gets all registered contexts.
Array of contexts (order not guaranteed)
Gets contexts in topological order (dependency order).
Contexts are returned in the order they should be initialized. Plugins are initialized before contexts that depend on them.
Array of contexts in dependency order
Gets contexts in reverse topological order.
Useful for shutdown (shutdown in reverse initialization order).
Array of contexts in reverse dependency order
Clears all contexts from the registry.
Registry for managing contexts and their dependencies.
Maintains the dependency graph and provides contexts in initialization order.
Example