Init CurrentCore

This commit is contained in:
Bjarke Berg
2019-11-07 14:08:07 +01:00
parent f4fee90b7e
commit 4529cd408a
19 changed files with 21 additions and 9 deletions

View File

@@ -153,7 +153,7 @@ namespace Umbraco.Core.Runtime
composers.Compose();
// create the factory
_factory = Current.Factory = composition.CreateFactory();
_factory = Current.Factory = CurrentCore.Factory = composition.CreateFactory();
// create & initialize the components
_components = _factory.GetInstance<ComponentCollection>();
@@ -178,7 +178,7 @@ namespace Umbraco.Core.Runtime
{
try
{
_factory = Current.Factory = composition?.CreateFactory();
_factory = Current.Factory = CurrentCore.Factory = composition?.CreateFactory();
}
catch { /* yea */ }
}