Remove autoroute handler from tags service

--HG--
branch : autoroute
This commit is contained in:
randompete
2012-02-01 20:19:21 +00:00
parent 049956d55a
commit 9e51b566f9

View File

@@ -20,20 +20,17 @@ namespace Orchard.Tags.Services {
private readonly INotifier _notifier;
private readonly IAuthorizationService _authorizationService;
private readonly IOrchardServices _orchardServices;
private readonly IRoutePatternManager _routePatternManager;
public TagService(IRepository<TagRecord> tagRepository,
IRepository<ContentTagRecord> contentTagRepository,
INotifier notifier,
IAuthorizationService authorizationService,
IOrchardServices orchardServices,
IRoutePatternManager routePatternManager) {
IOrchardServices orchardServices) {
_tagRepository = tagRepository;
_contentTagRepository = contentTagRepository;
_notifier = notifier;
_authorizationService = authorizationService;
_orchardServices = orchardServices;
_routePatternManager = routePatternManager;
Logger = NullLogger.Instance;
T = NullLocalizer.Instance;
}
@@ -64,7 +61,6 @@ namespace Orchard.Tags.Services {
result = new TagRecord { TagName = tagName };
_tagRepository.Create(result);
}
_routePatternManager.Generate(result, "Tags");
return result;
}
@@ -120,7 +116,6 @@ namespace Orchard.Tags.Services {
// Create new tag
tagRecord = _tagRepository.Get(tagId);
tagRecord.TagName = tagName;
_routePatternManager.Generate(tagRecord, "Tags");
}
public IEnumerable<IContent> GetTaggedContentItems(int tagId) {
@@ -203,8 +198,4 @@ namespace Orchard.Tags.Services {
}
}
public interface IRoutePatternManager : IEventHandler {
void Generate(TagRecord item, string scope);
}
}