improve installationmanager

This commit is contained in:
Shaun Walker
2019-09-20 08:50:55 -04:00
parent 83a212e7e3
commit c3ff9ff12b
7 changed files with 52 additions and 42 deletions

View File

@ -12,12 +12,12 @@ namespace Oqtane.Controllers
public class ThemeController : Controller
{
private readonly IThemeRepository Themes;
private readonly IInstallation Installation;
private readonly IInstallationManager InstallationManager;
public ThemeController(IThemeRepository Themes, IInstallation Installation)
public ThemeController(IThemeRepository Themes, IInstallationManager InstallationManager)
{
this.Themes = Themes;
this.Installation = Installation;
this.InstallationManager = InstallationManager;
}
// GET: api/<controller>
@ -31,7 +31,7 @@ namespace Oqtane.Controllers
[Authorize(Roles = Constants.HostRole)]
public void InstallThemes()
{
Installation.Install("Themes");
InstallationManager.InstallPackages("Themes");
}
}
}