Current.Container abstracted. Builds, but fails for collection builder tests.

This commit is contained in:
Lars-Erik Aabech
2018-06-16 13:13:29 +02:00
parent 9b1bd3be60
commit e3d77fb012
13 changed files with 84 additions and 13 deletions

View File

@@ -40,7 +40,7 @@ namespace Umbraco.Core.IO
{
// due to how FileSystems is written at the moment, the ctor cannot be used to inject
// dependencies, so we have to rely on property injection for anything we might need
Current.Container.InjectProperties(this);
((IServiceContainer)Current.Container.ConcreteContainer).InjectProperties(this);
UploadAutoFillProperties = new UploadAutoFillProperties(this, Logger, ContentConfig);
}