Gets site running with dashboards
This commit is contained in:
@@ -16,6 +16,7 @@ namespace Umbraco.Core.Composing.CompositionRoots
|
||||
container.Register(factory => factory.GetInstance<IUmbracoSettingsSection>().Templates);
|
||||
container.Register(factory => factory.GetInstance<IUmbracoSettingsSection>().RequestHandler);
|
||||
container.Register(factory => UmbracoConfig.For.GlobalSettings());
|
||||
container.Register(factory => UmbracoConfig.For.DashboardSettings());
|
||||
|
||||
// fixme - other sections we need to add?
|
||||
}
|
||||
|
||||
@@ -122,6 +122,8 @@ namespace Umbraco.Web.Runtime
|
||||
composition.Container.EnableMvc(); // does container.EnablePerWebRequestScope()
|
||||
composition.Container.ScopeManagerProvider = smp; // reverts - we will do it last (in WebRuntime)
|
||||
|
||||
composition.Container.RegisterSingleton<DashboardHelper>();
|
||||
|
||||
composition.Container.RegisterUmbracoControllers(typeLoader, GetType().Assembly);
|
||||
composition.Container.EnableWebApi(GlobalConfiguration.Configuration);
|
||||
|
||||
@@ -208,8 +210,6 @@ namespace Umbraco.Web.Runtime
|
||||
.Append<ListViewContentAppDefinition>()
|
||||
.Append<ContentEditorContentAppDefinition>()
|
||||
.Append<ContentInfoContentAppDefinition>();
|
||||
|
||||
composition.Container.RegisterSingleton<DashboardHelper>();
|
||||
}
|
||||
|
||||
internal void Initialize(
|
||||
|
||||
Reference in New Issue
Block a user