diff --git a/web/modules/custom/blog/opdavies_blog.services.yml b/web/modules/custom/blog/opdavies_blog.services.yml index fb2dc2dda..713053d26 100644 --- a/web/modules/custom/blog/opdavies_blog.services.yml +++ b/web/modules/custom/blog/opdavies_blog.services.yml @@ -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 } diff --git a/web/modules/custom/blog/src/EventSubscriber/PushBlogPostToSocialMedia.php b/web/modules/custom/blog/src/EventSubscriber/PushPostToSocialMediaOnceItIsPublished.php similarity index 93% rename from web/modules/custom/blog/src/EventSubscriber/PushBlogPostToSocialMedia.php rename to web/modules/custom/blog/src/EventSubscriber/PushPostToSocialMediaOnceItIsPublished.php index 2ef15a317..ee6d13761 100644 --- a/web/modules/custom/blog/src/EventSubscriber/PushBlogPostToSocialMedia.php +++ b/web/modules/custom/blog/src/EventSubscriber/PushPostToSocialMediaOnceItIsPublished.php @@ -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; diff --git a/web/modules/custom/blog/src/EventSubscriber/ReorderBlogTags.php b/web/modules/custom/blog/src/EventSubscriber/SortTagsAlphabeticallyWhenPostIsSaved.php similarity index 91% rename from web/modules/custom/blog/src/EventSubscriber/ReorderBlogTags.php rename to web/modules/custom/blog/src/EventSubscriber/SortTagsAlphabeticallyWhenPostIsSaved.php index b7ce6ef8c..0978e1293 100644 --- a/web/modules/custom/blog/src/EventSubscriber/ReorderBlogTags.php +++ b/web/modules/custom/blog/src/EventSubscriber/SortTagsAlphabeticallyWhenPostIsSaved.php @@ -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