Removing the HomeController from the Orchard assembly

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-03-01 01:25:13 -08:00
parent 8e1207dd6b
commit 349fbaa393
4 changed files with 1 additions and 23 deletions

View File

@@ -1,18 +0,0 @@
using System.Web.Mvc;
using Orchard.Mvc.ViewModels;
namespace Orchard.Controllers {
[HandleError]
public class HomeController : Controller {
public ActionResult Index() {
ViewData["Message"] = "Welcome to ASP.NET MVC!";
return View(new BaseViewModel());
}
public ActionResult About() {
return View(new BaseViewModel());
}
}
}

View File

@@ -3,7 +3,6 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using System.Web; using System.Web;
using System.Web.Mvc;
using System.Web.Routing; using System.Web.Routing;
using Autofac; using Autofac;
using Orchard.ContentManagement; using Orchard.ContentManagement;

View File

@@ -5,8 +5,6 @@ using System.Web.Routing;
using Autofac; using Autofac;
using Autofac.Builder; using Autofac.Builder;
using Autofac.Integration.Web.Mvc; using Autofac.Integration.Web.Mvc;
using Orchard.Controllers;
using Orchard.Environment;
using Orchard.Mvc.Filters; using Orchard.Mvc.Filters;
using Orchard.Extensions; using Orchard.Extensions;
@@ -20,7 +18,7 @@ namespace Orchard.Mvc {
protected override void Load(ContainerBuilder moduleBuilder) { protected override void Load(ContainerBuilder moduleBuilder) {
var extensions = _extensionManager.ActiveExtensions(); var extensions = _extensionManager.ActiveExtensions();
var assemblies = extensions.Select(x => x.Assembly).Concat(new[] { typeof(HomeController).Assembly }); var assemblies = extensions.Select(x => x.Assembly).Concat(new[] { typeof(MvcModule).Assembly });
var module = new AutofacControllerModule(assemblies.ToArray()) { var module = new AutofacControllerModule(assemblies.ToArray()) {
ActionInvokerType = typeof(FilterResolvingActionInvoker), ActionInvokerType = typeof(FilterResolvingActionInvoker),

View File

@@ -216,7 +216,6 @@
<Compile Include="Localization\Text.cs" /> <Compile Include="Localization\Text.cs" />
<Compile Include="Mvc\ViewModels\ContentItemViewModel.cs" /> <Compile Include="Mvc\ViewModels\ContentItemViewModel.cs" />
<Compile Include="ContentManagement\ViewModels\TemplateViewModel.cs" /> <Compile Include="ContentManagement\ViewModels\TemplateViewModel.cs" />
<Compile Include="Controllers\HomeController.cs" />
<Compile Include="Data\Conventions\AttributeCollectionConvention.cs" /> <Compile Include="Data\Conventions\AttributeCollectionConvention.cs" />
<Compile Include="Data\Conventions\CascadeAllDeleteOrphanAttribute.cs" /> <Compile Include="Data\Conventions\CascadeAllDeleteOrphanAttribute.cs" />
<Compile Include="Data\TransactionManager.cs" /> <Compile Include="Data\TransactionManager.cs" />