Adds ContentApps to the Composition extension methods

This commit is contained in:
Warren Buckley
2018-10-19 15:19:37 +01:00
parent 0f2381a94d
commit f37f679031

View File

@@ -10,6 +10,7 @@ using Umbraco.Web.Mvc;
using Umbraco.Web.PublishedCache;
using Umbraco.Web.Routing;
using Umbraco.Web._Legacy.Actions;
using Umbraco.Web.ContentApps;
// the namespace here is intentional - although defined in Umbraco.Web assembly,
// this class should be visible when using Umbraco.Core.Components, alongside
@@ -32,7 +33,15 @@ namespace Umbraco.Core.Components
/// <returns></returns>
internal static ActionCollectionBuilder Actions(this Composition composition)
=> composition.Container.GetInstance<ActionCollectionBuilder>();
/// <summary>
/// Gets the content apps collection builder.
/// </summary>
/// <param name="composition">The composition.</param>
/// <returns></returns>
public static ContentAppDefinitionCollectionBuilder ContentApps(this Composition composition)
=> composition.Container.GetInstance<ContentAppDefinitionCollectionBuilder>();
/// <summary>
/// Gets the content finders collection builder.
/// </summary>