From 7e06943be18c81ab63d64afeddd6bb318c77ff51 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 13 Jan 2021 17:55:29 +0000 Subject: [PATCH] Rename event subscriber classes --- web/modules/custom/blog/opdavies_blog.services.yml | 4 ++-- ...alMedia.php => PushPostToSocialMediaOnceItIsPublished.php} | 2 +- ...BlogTags.php => SortTagsAlphabeticallyWhenPostIsSaved.php} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename web/modules/custom/blog/src/EventSubscriber/{PushBlogPostToSocialMedia.php => PushPostToSocialMediaOnceItIsPublished.php} (93%) rename web/modules/custom/blog/src/EventSubscriber/{ReorderBlogTags.php => SortTagsAlphabeticallyWhenPostIsSaved.php} (91%) diff --git a/web/modules/custom/blog/opdavies_blog.services.yml b/web/modules/custom/blog/opdavies_blog.services.yml index fb2dc2d..713053d 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 2ef15a3..ee6d137 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 b7ce6ef..0978e12 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