Resvolution - UrlProviderResolver
This commit is contained in:
@@ -112,7 +112,7 @@ namespace Umbraco.Web
|
||||
=> Container.GetInstance<IEventMessagesFactory>().GetOrDefault();
|
||||
|
||||
public static UrlProviderCollection UrlProviders
|
||||
=> CoreCurrent.Container.GetInstance<UrlProviderCollection>();
|
||||
=> Container.GetInstance<UrlProviderCollection>();
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using LightInject;
|
||||
using LightInject;
|
||||
using Umbraco.Core.DependencyInjection;
|
||||
|
||||
namespace Umbraco.Web.Routing
|
||||
@@ -11,10 +10,5 @@ namespace Umbraco.Web.Routing
|
||||
{ }
|
||||
|
||||
protected override UrlProviderCollectionBuilder This => this;
|
||||
|
||||
protected override UrlProviderCollection CreateCollection(IEnumerable<IUrlProvider> items)
|
||||
{
|
||||
return new UrlProviderCollection(items);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -510,8 +510,7 @@ namespace Umbraco.Web
|
||||
typeof (RenderControllerFactory)
|
||||
});
|
||||
|
||||
Container.RegisterBuilderCollection<UrlProviderCollectionBuilder, UrlProviderCollection, IUrlProvider>();
|
||||
Container.GetInstance<UrlProviderCollectionBuilder>()
|
||||
UrlProviderCollectionBuilder.Register(Container)
|
||||
//.Append<AliasUrlProvider>() // not enabled by default
|
||||
.Append<DefaultUrlProvider>()
|
||||
.Append<CustomRouteUrlProvider>();
|
||||
|
||||
Reference in New Issue
Block a user