Removed old MacroControlFactory - marked as internal FTW ! moved it to new MacroFieldEditorsResolver

using the new framework. Also moved PersistableMacroProperty to new assembly (it was also marked as internal).
Updated unit tests to work with Resolution and resetting resolvers.
This commit is contained in:
shannon@ShandemVaio
2012-08-01 22:46:13 +06:00
parent 646e96ab15
commit 2115146fdb
18 changed files with 192 additions and 454 deletions

View File

@@ -40,7 +40,10 @@ namespace Umbraco.Core
/// <returns></returns>
public virtual IBootManager Startup(Action<ApplicationContext> afterStartup)
{
afterStartup(ApplicationContext.Current);
if (afterStartup != null)
{
afterStartup(ApplicationContext.Current);
}
return this;
}
@@ -57,7 +60,11 @@ namespace Umbraco.Core
//stop the timer and log the output
_timer.Dispose();
afterComplete(ApplicationContext.Current);
if (afterComplete != null)
{
afterComplete(ApplicationContext.Current);
}
return this;
}
@@ -71,6 +78,9 @@ namespace Umbraco.Core
DataTypesResolver.Current = new DataTypesResolver(
PluginManager.Current.ResolveDataTypes());
MacroFieldEditorsResolver.Current = new MacroFieldEditorsResolver(
PluginManager.Current.ResolveMacroRenderings());
}
}
}