diff --git a/src/Umbraco.Core/PluginManager.cs b/src/Umbraco.Core/PluginManager.cs index 240d61208b..7fd69863ce 100644 --- a/src/Umbraco.Core/PluginManager.cs +++ b/src/Umbraco.Core/PluginManager.cs @@ -33,7 +33,7 @@ namespace Umbraco.Core /// it will use the cached resolved plugins that it has already found which means that no assembly scanning is necessary. This leads /// to much faster startup times. /// - internal class PluginManager + public class PluginManager { private readonly ApplicationContext _appContext; private const string CacheKey = "umbraco-plugins.list"; @@ -106,7 +106,7 @@ namespace Umbraco.Core /// /// The setter is generally only used for unit tests /// - internal static PluginManager Current + public static PluginManager Current { get { @@ -750,12 +750,13 @@ namespace Umbraco.Core UpdateCachedPluginsFile(typeList.GetTypes(), resolutionKind); } + #region Public Methods /// /// Generic method to find the specified type and cache the result /// /// /// - internal IEnumerable ResolveTypes(bool cacheResult = true) + public IEnumerable ResolveTypes(bool cacheResult = true) { return ResolveTypes( () => TypeFinder.FindClassesOfType(AssembliesToScan), @@ -769,7 +770,7 @@ namespace Umbraco.Core /// /// /// - internal IEnumerable ResolveTypesWithAttribute(bool cacheResult = true) + public IEnumerable ResolveTypesWithAttribute(bool cacheResult = true) where TAttribute : Attribute { return ResolveTypes( @@ -783,14 +784,15 @@ namespace Umbraco.Core /// /// /// - internal IEnumerable ResolveAttributedTypes(bool cacheResult = true) + public IEnumerable ResolveAttributedTypes(bool cacheResult = true) where TAttribute : Attribute { return ResolveTypes( () => TypeFinder.FindClassesWithAttribute(AssembliesToScan), TypeResolutionKind.FindAttributedTypes, cacheResult); - } + } + #endregion /// /// Used for unit tests