Adds ContentApps to the Composition extension methods
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user