Adding a note about the usage of the PackageInstallation class in the PackagingService

This commit is contained in:
Morten Christensen
2014-03-14 12:14:43 +01:00
parent 8db6633c91
commit b680f87c12

View File

@@ -1206,6 +1206,8 @@ namespace Umbraco.Core.Services
internal InstallationSummary InstallPackage(string packageFilePath, int userId = 0)
{
//TODO Add events ?
//NOTE The PackageInstallation class should be passed as IPackageInstallation through the
//constructor (probably as an overload to avoid breaking stuff), so that its extendable.
var installer = new PackageInstallation(this, new PackageExtraction());
return installer.InstallPackage(packageFilePath, userId);
}