Skip to content

Commit

Permalink
Added old ctor to avoid a breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmania committed Sep 8, 2020
1 parent c3d69df commit bef8cb9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Umbraco.Web/Install/InstallHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ public sealed class InstallHelper
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)
Expand Down

0 comments on commit bef8cb9

Please sign in to comment.