Get the globally registered WidgetRegistry instance. If no registry is registered yet, a new singleton instance is created.
Optional
optional scope of the registry
the singleton instance
Get the globally registered WidgetRegistry instance. If no registry is registered yet, a new singleton instance is created.