Rename event subscriber classes

This commit is contained in:
Oliver Davies 2021-01-13 17:55:29 +00:00
parent 17179fbfe4
commit 7e06943be1
3 changed files with 4 additions and 4 deletions

View file

@ -1,10 +1,10 @@
services:
Drupal\opdavies_blog\EventSubscriber\PushBlogPostToSocialMedia:
Drupal\opdavies_blog\EventSubscriber\PushPostToSocialMediaOnceItIsPublished:
autowire: true
tags:
- { name: event_subscriber }
Drupal\opdavies_blog\EventSubscriber\ReorderBlogTags:
Drupal\opdavies_blog\EventSubscriber\SortTagsAlphabeticallyWhenPostIsSaved:
tags:
- { name: event_subscriber }

View file

@ -10,7 +10,7 @@ use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
use Drupal\opdavies_blog\Entity\Node\Post;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
final class PushBlogPostToSocialMedia implements EventSubscriberInterface {
final class PushPostToSocialMediaOnceItIsPublished implements EventSubscriberInterface {
private QueueFactory $queueFactory;

View file

@ -10,7 +10,7 @@ use Drupal\opdavies_blog\Entity\Node\Post;
use Drupal\taxonomy\TermInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
final class ReorderBlogTags implements EventSubscriberInterface {
final class SortTagsAlphabeticallyWhenPostIsSaved implements EventSubscriberInterface {
/**
* @inheritDoc