mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
Removing the HomeController from the Orchard assembly
--HG-- branch : dev
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
@@ -3,7 +3,6 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using System.Web.Routing;
|
||||
using Autofac;
|
||||
using Orchard.ContentManagement;
|
||||
|
@@ -5,8 +5,6 @@ using System.Web.Routing;
|
||||
using Autofac;
|
||||
using Autofac.Builder;
|
||||
using Autofac.Integration.Web.Mvc;
|
||||
using Orchard.Controllers;
|
||||
using Orchard.Environment;
|
||||
using Orchard.Mvc.Filters;
|
||||
using Orchard.Extensions;
|
||||
|
||||
@@ -20,7 +18,7 @@ namespace Orchard.Mvc {
|
||||
|
||||
protected override void Load(ContainerBuilder moduleBuilder) {
|
||||
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()) {
|
||||
ActionInvokerType = typeof(FilterResolvingActionInvoker),
|
||||
|
@@ -216,7 +216,6 @@
|
||||
<Compile Include="Localization\Text.cs" />
|
||||
<Compile Include="Mvc\ViewModels\ContentItemViewModel.cs" />
|
||||
<Compile Include="ContentManagement\ViewModels\TemplateViewModel.cs" />
|
||||
<Compile Include="Controllers\HomeController.cs" />
|
||||
<Compile Include="Data\Conventions\AttributeCollectionConvention.cs" />
|
||||
<Compile Include="Data\Conventions\CascadeAllDeleteOrphanAttribute.cs" />
|
||||
<Compile Include="Data\TransactionManager.cs" />
|
||||
|
Reference in New Issue
Block a user