From fd5a2f355b004e94193ae901d730fbb6086d57c9 Mon Sep 17 00:00:00 2001 From: Shannon Date: Thu, 14 Feb 2019 11:08:39 +1100 Subject: [PATCH] Also exposes the SearchableTreeCollectionBuilder since that's required to be able to replace the ISearchableTree implementations --- src/Umbraco.Web/CompositionExtensions.cs | 10 ++++++++++ .../Search/SearchableTreeCollectionBuilder.cs | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/CompositionExtensions.cs b/src/Umbraco.Web/CompositionExtensions.cs index 17eba3f81f..c9cc213ba0 100644 --- a/src/Umbraco.Web/CompositionExtensions.cs +++ b/src/Umbraco.Web/CompositionExtensions.cs @@ -10,6 +10,7 @@ using Umbraco.Web.Media.EmbedProviders; using Umbraco.Web.Mvc; using Umbraco.Web.PublishedCache; using Umbraco.Web.Routing; +using Umbraco.Web.Search; using Umbraco.Web.Tour; using Umbraco.Web.Trees; using Current = Umbraco.Web.Composing.Current; @@ -116,6 +117,15 @@ namespace Umbraco.Web /// public static TreeCollectionBuilder Trees(this Composition composition) => composition.WithCollectionBuilder(); + + /// + /// Gets the back office searchable tree collection builder + /// + /// + /// + public static SearchableTreeCollectionBuilder SearchableTrees(this Composition composition) + => composition.WithCollectionBuilder(); + #endregion #region Uniques diff --git a/src/Umbraco.Web/Search/SearchableTreeCollectionBuilder.cs b/src/Umbraco.Web/Search/SearchableTreeCollectionBuilder.cs index 2d668257ef..847264ee03 100644 --- a/src/Umbraco.Web/Search/SearchableTreeCollectionBuilder.cs +++ b/src/Umbraco.Web/Search/SearchableTreeCollectionBuilder.cs @@ -3,7 +3,7 @@ using Umbraco.Web.Trees; namespace Umbraco.Web.Search { - internal class SearchableTreeCollectionBuilder : LazyCollectionBuilderBase + public class SearchableTreeCollectionBuilder : LazyCollectionBuilderBase { protected override SearchableTreeCollectionBuilder This => this;