Container should be registered with itself
This commit is contained in:
@@ -31,6 +31,7 @@ namespace Umbraco.Core.Composing
|
||||
{
|
||||
throw new Exception($"Container factory '${configuredTypeName}' did not return an IContainer implementation.");
|
||||
}
|
||||
|
||||
return container;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -70,6 +70,7 @@ namespace Umbraco.Core
|
||||
// create the container for the application, and configure.
|
||||
// the boot manager is responsible for registrations
|
||||
var container = GetContainer();
|
||||
container.RegisterSingleton(x => container);
|
||||
Current.Container = container;
|
||||
|
||||
// register the essential stuff,
|
||||
|
||||
Reference in New Issue
Block a user