Browse Source

Ensure that web is shared in plugins.

pull/349/head
Sebastian Stehle 7 years ago
parent
commit
77017c1168
  1. 18
      src/Squidex.Web/SquidexWeb.cs
  2. 4
      src/Squidex/Pipeline/Plugins/PluginExtensions.cs

18
src/Squidex.Web/SquidexWeb.cs

@ -0,0 +1,18 @@
// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using System.Reflection;
#pragma warning disable RECS0014 // If all fields, properties and methods members are static, the class can be made static.
namespace Squidex.Infrastructure
{
public sealed class SquidexInfrastructure
{
public static readonly Assembly Assembly = typeof(SquidexInfrastructure).Assembly;
}
}

4
src/Squidex/Pipeline/Plugins/PluginExtensions.cs

@ -20,6 +20,7 @@ using Squidex.Domain.Apps.Events;
using Squidex.Infrastructure; using Squidex.Infrastructure;
using Squidex.Infrastructure.Log; using Squidex.Infrastructure.Log;
using Squidex.Infrastructure.Plugins; using Squidex.Infrastructure.Plugins;
using Squidex.Web;
namespace Squidex.Pipeline.Plugins namespace Squidex.Pipeline.Plugins
{ {
@ -32,7 +33,8 @@ namespace Squidex.Pipeline.Plugins
typeof(SquidexCoreOperations), typeof(SquidexCoreOperations),
typeof(SquidexEntities), typeof(SquidexEntities),
typeof(SquidexEvents), typeof(SquidexEvents),
typeof(SquidexInfrastructure) typeof(SquidexInfrastructure),
typeof(SquidexWeb)
}; };
public static IMvcBuilder AddMyPlugins(this IMvcBuilder mvcBuilder, IConfiguration config) public static IMvcBuilder AddMyPlugins(this IMvcBuilder mvcBuilder, IConfiguration config)

Loading…
Cancel
Save