Created
April 18, 2022 15:12
-
-
Save cornehoskam/45fd4b4eda656dadd9e791cb5eda5042 to your computer and use it in GitHub Desktop.
uMarketingSuite & Cookiebot - Composer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using uMarketingSuite.Business.Permissions.ModulePermissions; | |
using uMarketingSuite.Common.Composing; | |
using Umbraco.Cms.Core.Composing; | |
using Umbraco.Cms.Core.DependencyInjection; | |
using Umbraco.Extensions; | |
namespace MyCustomUmbracoProject.Classes | |
{ | |
[ComposeAfter(typeof(AttributeBasedComposer))] | |
public class MarketingPermissionsComposer : IComposer | |
{ | |
public void Compose(IUmbracoBuilder builder) | |
{ | |
builder.Services.AddUnique<IModulePermissions, MarketingPermissions>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment