Moved notification handlers out of the Compose namespace
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Umbraco.Cms.Core.Composing;
|
||||
using Umbraco.Cms.Core.DependencyInjection;
|
||||
using Umbraco.Cms.Core.Events;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.PropertyEditors;
|
||||
using Umbraco.Cms.Core.Routing;
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
using Umbraco.Cms.Core.Events;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
using Umbraco.Cms.Infrastructure.Services.Notifications;
|
||||
|
||||
namespace Umbraco.Cms.Core.Compose
|
||||
namespace Umbraco.Cms.Core.Events
|
||||
{
|
||||
// TODO: this should probably be moved to another namespace
|
||||
public class RelateOnCopyHandler : INotificationHandler<CopiedNotification<IContent>>
|
||||
{
|
||||
private readonly IRelationService _relationService;
|
||||
@@ -1,14 +1,12 @@
|
||||
using System.Linq;
|
||||
using Umbraco.Cms.Core.Events;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Scoping;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
using Umbraco.Cms.Infrastructure.Services.Notifications;
|
||||
using Umbraco.Extensions;
|
||||
|
||||
namespace Umbraco.Cms.Core.Compose
|
||||
namespace Umbraco.Cms.Core.Events
|
||||
{
|
||||
// TODO: this should probably be moved to another namespace
|
||||
// TODO: lots of duplicate code in this one, refactor
|
||||
public sealed class RelateOnTrashHandler :
|
||||
INotificationHandler<MovedNotification<IContent>>,
|
||||
@@ -9,7 +9,6 @@ using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using Umbraco.Cms.Core.Actions;
|
||||
using Umbraco.Cms.Core.Configuration.Models;
|
||||
using Umbraco.Cms.Core.Events;
|
||||
using Umbraco.Cms.Core.Hosting;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Models.Entities;
|
||||
@@ -19,9 +18,8 @@ using Umbraco.Cms.Core.Services;
|
||||
using Umbraco.Cms.Infrastructure.Services.Notifications;
|
||||
using Umbraco.Extensions;
|
||||
|
||||
namespace Umbraco.Cms.Core.Compose
|
||||
namespace Umbraco.Cms.Core.Events
|
||||
{
|
||||
// TODO: this should probably be moved to another namespace
|
||||
public sealed class UserNotificationsHandler :
|
||||
INotificationHandler<SavedNotification<IContent>>,
|
||||
INotificationHandler<SortedNotification<IContent>>,
|
||||
Reference in New Issue
Block a user