Added old ctor to avoid a breaking change

This commit is contained in:
Bjarke Berg
2020-09-08 14:32:09 +02:00
parent c3d69df27b
commit bef8cb9589

View File

@@ -30,6 +30,18 @@ namespace Umbraco.Web.Install
private readonly IInstallationService _installationService;
private InstallationType? _installationType;
[Obsolete("Use the constructor with IInstallationService injected.")]
public InstallHelper(
IUmbracoContextAccessor umbracoContextAccessor,
DatabaseBuilder databaseBuilder,
ILogger logger,
IGlobalSettings globalSettings)
: this(umbracoContextAccessor, databaseBuilder, logger, globalSettings, Current.Factory.GetInstance<IInstallationService>())
{
}
public InstallHelper(IUmbracoContextAccessor umbracoContextAccessor,
DatabaseBuilder databaseBuilder,
ILogger logger, IGlobalSettings globalSettings, IInstallationService installationService)