Registering WebRuntimeComponent and publicizing its dep. chain
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Umbraco.Web.Mvc
|
||||
// which we are not doing at the moment
|
||||
// we can inherit from BuilderCollectionBase and just be enumerable
|
||||
|
||||
internal class SurfaceControllerTypeCollection : BuilderCollectionBase<Type>
|
||||
public class SurfaceControllerTypeCollection : BuilderCollectionBase<Type>
|
||||
{
|
||||
public SurfaceControllerTypeCollection(IEnumerable<Type> items)
|
||||
: base(items)
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Umbraco.Web.Runtime
|
||||
{
|
||||
public class WebRuntimeComponent : IComponent
|
||||
{
|
||||
internal WebRuntimeComponent(
|
||||
public WebRuntimeComponent(
|
||||
IRuntimeState runtime,
|
||||
IUmbracoContextAccessor umbracoContextAccessor,
|
||||
SurfaceControllerTypeCollection surfaceControllerTypes,
|
||||
|
||||
@@ -40,6 +40,8 @@ namespace Umbraco.Web.Runtime
|
||||
{
|
||||
public void Compose(Composition composition)
|
||||
{
|
||||
composition.Components().Append<WebRuntimeComponent>();
|
||||
|
||||
composition.Register<UmbracoInjectedModule>();
|
||||
|
||||
composition.RegisterUnique<IHttpContextAccessor, AspNetHttpContextAccessor>(); // required for hybrid accessors
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Umbraco.Web.WebApi
|
||||
// which we are not doing at the moment
|
||||
// we can inherit from BuilderCollectionBase and just be enumerable
|
||||
|
||||
internal class UmbracoApiControllerTypeCollection : BuilderCollectionBase<Type>
|
||||
public class UmbracoApiControllerTypeCollection : BuilderCollectionBase<Type>
|
||||
{
|
||||
public UmbracoApiControllerTypeCollection(IEnumerable<Type> items)
|
||||
: base(items)
|
||||
|
||||
Reference in New Issue
Block a user