Implements a basic version of the MacroService for U4-940

Adding a static ServiceFactory class for easy access to the various services in a non-singleton way.
Adding a Resolver for MacroPropertyTypes.
Updating the CoreBootManager and PluginManager to include the MacroPropertyTypeResolver.
This commit is contained in:
sitereactor
2012-10-30 09:25:28 -01:00
parent 9306fd0b5c
commit 347bf3fabf
13 changed files with 292 additions and 6 deletions

View File

@@ -89,6 +89,6 @@ namespace Umbraco.Core.Models
/// Returns an enum <see cref="MacroTypes"/> based on the properties on the Macro
/// </summary>
/// <returns><see cref="MacroTypes"/></returns>
MacroTypes FindMacroType();
MacroTypes MacroType();
}
}

View File

@@ -105,7 +105,7 @@ namespace Umbraco.Core.Models
/// Returns an enum <see cref="MacroTypes"/> based on the properties on the Macro
/// </summary>
/// <returns><see cref="MacroTypes"/></returns>
public MacroTypes FindMacroType()
public MacroTypes MacroType()
{
if (!string.IsNullOrEmpty(Xslt))
return MacroTypes.Xslt;