Rename event subscriber classes
This commit is contained in:
parent
17179fbfe4
commit
7e06943be1
|
@ -1,10 +1,10 @@
|
||||||
services:
|
services:
|
||||||
Drupal\opdavies_blog\EventSubscriber\PushBlogPostToSocialMedia:
|
Drupal\opdavies_blog\EventSubscriber\PushPostToSocialMediaOnceItIsPublished:
|
||||||
autowire: true
|
autowire: true
|
||||||
tags:
|
tags:
|
||||||
- { name: event_subscriber }
|
- { name: event_subscriber }
|
||||||
|
|
||||||
Drupal\opdavies_blog\EventSubscriber\ReorderBlogTags:
|
Drupal\opdavies_blog\EventSubscriber\SortTagsAlphabeticallyWhenPostIsSaved:
|
||||||
tags:
|
tags:
|
||||||
- { name: event_subscriber }
|
- { name: event_subscriber }
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
|
||||||
use Drupal\opdavies_blog\Entity\Node\Post;
|
use Drupal\opdavies_blog\Entity\Node\Post;
|
||||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
|
|
||||||
final class PushBlogPostToSocialMedia implements EventSubscriberInterface {
|
final class PushPostToSocialMediaOnceItIsPublished implements EventSubscriberInterface {
|
||||||
|
|
||||||
private QueueFactory $queueFactory;
|
private QueueFactory $queueFactory;
|
||||||
|
|
|
@ -10,7 +10,7 @@ use Drupal\opdavies_blog\Entity\Node\Post;
|
||||||
use Drupal\taxonomy\TermInterface;
|
use Drupal\taxonomy\TermInterface;
|
||||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
|
|
||||||
final class ReorderBlogTags implements EventSubscriberInterface {
|
final class SortTagsAlphabeticallyWhenPostIsSaved implements EventSubscriberInterface {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
Loading…
Reference in a new issue