refactors where the container is created

This commit is contained in:
Shannon
2015-01-21 13:21:36 +11:00
parent 13a4d5c81c
commit 9710e6f9e2
3 changed files with 46 additions and 85 deletions

View File

@@ -413,6 +413,9 @@ namespace Umbraco.Web
/// </summary>
private void SetupMvcAndWebApi()
{
//don't output the MVC version header (security)
MvcHandler.DisableMvcResponseHeader = true;
//set master controller factory
ControllerBuilder.Current.SetControllerFactory(
new MasterControllerFactory(FilteredControllerFactoriesResolver.Current));