Container should be registered with itself

This commit is contained in:
Lars-Erik Aabech
2018-07-28 01:05:07 +02:00
parent caa2802c16
commit c885f850e9
2 changed files with 2 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ namespace Umbraco.Core.Composing
{
throw new Exception($"Container factory '${configuredTypeName}' did not return an IContainer implementation.");
}
return container;
}
}

View File

@@ -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,