Rename DI to Composing
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using LightInject;
|
||||
using Umbraco.Core.Dictionary;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Macros;
|
||||
using Umbraco.Core.Models.PublishedContent;
|
||||
using Umbraco.Core.Persistence.Mappers;
|
||||
|
||||
@@ -28,7 +28,7 @@ using Umbraco.Web.PublishedCache;
|
||||
using Umbraco.Web.Routing;
|
||||
using Umbraco.Web.WebApi;
|
||||
using Umbraco.Web._Legacy.Actions;
|
||||
using CoreCurrent = Umbraco.Core.DI.Current;
|
||||
using CoreCurrent = Umbraco.Core.Composing.Current;
|
||||
|
||||
namespace Umbraco.Web
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.Editors
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using LightInject;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.Editors
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.HealthCheck
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using LightInject;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.HealthCheck
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Media;
|
||||
using Umbraco.Web.Media.ImageUrlProviders;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using LightInject;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Media;
|
||||
|
||||
namespace Umbraco.Web.Media
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.IO;
|
||||
|
||||
namespace Umbraco.Web.Media.ThumbnailProviders
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.IO;
|
||||
|
||||
namespace Umbraco.Web.Media.ThumbnailProviders
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.IO;
|
||||
|
||||
namespace Umbraco.Web.Media.ThumbnailProviders
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Media;
|
||||
|
||||
namespace Umbraco.Web.Media.ThumbnailProviders
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using LightInject;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Media;
|
||||
|
||||
namespace Umbraco.Web.Media.ThumbnailProviders
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Umbraco.Web.Mvc
|
||||
protected UmbracoContext UmbracoContext => _umbracoContext ?? (_umbracoContext = UmbracoContext.Current);
|
||||
|
||||
// todo - try lazy property injection?
|
||||
private FacadeRouter FacadeRouter => Core.DI.Current.Container.GetInstance<FacadeRouter>();
|
||||
private FacadeRouter FacadeRouter => Core.Composing.Current.Container.GetInstance<FacadeRouter>();
|
||||
|
||||
/// <summary>
|
||||
/// Exposes an UmbracoHelper
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.Mvc
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using LightInject;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.Mvc
|
||||
{
|
||||
|
||||
@@ -396,7 +396,7 @@ namespace Umbraco.Web.Mvc
|
||||
if (request.HasTemplate == false && routeDef.HasHijackedRoute == false)
|
||||
{
|
||||
// fixme - better find a way to inject that engine? or at least Current.Engine of some sort!
|
||||
var engine = Core.DI.Current.Container.GetInstance<FacadeRouter>();
|
||||
var engine = Core.Composing.Current.Container.GetInstance<FacadeRouter>();
|
||||
request.UpdateOnMissingTemplate(); // request will go 404
|
||||
|
||||
// HandleHttpResponseStatus returns a value indicating that the request should
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.Mvc
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Umbraco.Web.Mvc
|
||||
public abstract class UmbracoVirtualNodeRouteHandler : IRouteHandler
|
||||
{
|
||||
// todo - try lazy property injection?
|
||||
private FacadeRouter FacadeRouter => Core.DI.Current.Container.GetInstance<FacadeRouter>();
|
||||
private FacadeRouter FacadeRouter => Core.Composing.Current.Container.GetInstance<FacadeRouter>();
|
||||
|
||||
/// <summary>
|
||||
/// Returns the UmbracoContext for this route handler
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.Routing
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using LightInject;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.Routing
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.Routing
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using LightInject;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.Routing
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Umbraco.Web.Routing
|
||||
// test for collisions
|
||||
var uri = new Uri(url.TrimEnd('/'), UriKind.RelativeOrAbsolute);
|
||||
if (uri.IsAbsoluteUri == false) uri = uri.MakeAbsolute(UmbracoContext.Current.CleanedUmbracoUrl);
|
||||
var r = Core.DI.Current.Container.GetInstance<FacadeRouter>(); // fixme inject or ?
|
||||
var r = Core.Composing.Current.Container.GetInstance<FacadeRouter>(); // fixme inject or ?
|
||||
var pcr = r.CreateRequest(UmbracoContext.Current, uri);
|
||||
r.TryRouteRequest(pcr);
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace Umbraco.Web.Scheduling
|
||||
|
||||
public static MainDomHook Create(Action install, Action release)
|
||||
{
|
||||
return new MainDomHook(Core.DI.Current.Container.GetInstance<MainDom>(), install, release);
|
||||
return new MainDomHook(Core.Composing.Current.Container.GetInstance<MainDom>(), install, release);
|
||||
}
|
||||
|
||||
public static MainDomHook CreateForTest(Action install, Action release)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.Strategies.Migrations
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using LightInject;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.Strategies.Migrations
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using Umbraco.Core.Components;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Persistence.Migrations;
|
||||
using Umbraco.Core.Plugins;
|
||||
using LightInject;
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Umbraco.Web.Templates
|
||||
}
|
||||
|
||||
// todo - inject!
|
||||
private FacadeRouter FacadeRouter => Core.DI.Current.Container.GetInstance<FacadeRouter>();
|
||||
private FacadeRouter FacadeRouter => Core.Composing.Current.Container.GetInstance<FacadeRouter>();
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Umbraco.Web
|
||||
app.SanitizeThreadCulture();
|
||||
|
||||
// there's nothing we can do really
|
||||
if (Core.DI.Current.RuntimeState.Level == RuntimeLevel.BootFailed)
|
||||
if (Core.Composing.Current.RuntimeState.Level == RuntimeLevel.BootFailed)
|
||||
return;
|
||||
|
||||
ConfigureServices(app, Current.Services);
|
||||
|
||||
@@ -500,7 +500,7 @@ namespace Umbraco.Web
|
||||
/// <param name="app"></param>
|
||||
public void Init(HttpApplication app)
|
||||
{
|
||||
if (Core.DI.Current.RuntimeState.Level == RuntimeLevel.BootFailed)
|
||||
if (Core.Composing.Current.RuntimeState.Level == RuntimeLevel.BootFailed)
|
||||
{
|
||||
// there's nothing we can do really
|
||||
app.BeginRequest += (sender, args) => throw new BootFailedException("Boot failed. Umbraco cannot run. Umbraco's log file contains details about what caused the boot to fail.");
|
||||
@@ -509,7 +509,7 @@ namespace Umbraco.Web
|
||||
|
||||
// modules are *not* instanciated by the container so we have to
|
||||
// get our dependencies injected manually, through properties.
|
||||
Core.DI.Current.Container.InjectProperties(this);
|
||||
Core.Composing.Current.Container.InjectProperties(this);
|
||||
|
||||
app.BeginRequest += (sender, e) =>
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
|
||||
namespace Umbraco.Web.WebApi
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using Umbraco.Core;
|
||||
using Umbraco.Core.Logging;
|
||||
using Umbraco.Core.Cache;
|
||||
using Umbraco.Core.Configuration;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Persistence;
|
||||
|
||||
namespace Umbraco.Web
|
||||
|
||||
@@ -15,7 +15,7 @@ using Microsoft.AspNet.SignalR;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Components;
|
||||
using Umbraco.Core.Configuration;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Dictionary;
|
||||
using Umbraco.Core.Events;
|
||||
using Umbraco.Core.Logging;
|
||||
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using LightInject;
|
||||
using Umbraco.Core.DI;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Plugins;
|
||||
using Umbraco.Web.UI.Pages;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user