in Sources/NeedleFoundation/Pluginized/Internal/PluginExtensionProviderRegistry.swift [54:70]
func pluginExtensionProvider(`for` component: PluginizedScope) -> AnyObject {
// Lock on `providerFactories` access.
lock.lock()
defer {
lock.unlock()
}
// The last element of the path is the component itself and it always exists.
let key = component.path.last!
if let factory = providerFactories[key] {
return factory(component)
} else {
// This case should never occur with properly generated Needle code.
// This is useful for Needle generator development only.
fatalError("Missing plugin extension provider factory for \(component.path)")
}
}