Introduce Image URL Generator abstraction

This commit is contained in:
Benjamin Carleski
2020-02-07 15:01:03 -08:00
parent 02a9645ed1
commit a7ff20de6e
22 changed files with 747 additions and 269 deletions

View File

@@ -38,6 +38,8 @@ using Umbraco.Web.Trees;
using Umbraco.Web.WebApi;
using Current = Umbraco.Web.Composing.Current;
using Umbraco.Web.PropertyEditors;
using Umbraco.Core.Models;
using Umbraco.Web.Models;
namespace Umbraco.Web.Runtime
{
@@ -190,6 +192,8 @@ namespace Umbraco.Web.Runtime
composition.MediaUrlProviders()
.Append<DefaultMediaUrlProvider>();
composition.RegisterUnique<IImageUrlGenerator, ImageProcessorImageUrlGenerator>();
composition.RegisterUnique<IContentLastChanceFinder, ContentFinderByConfigured404>();
composition.ContentFinders()