diff --git a/web/modules/custom/blog/src/EventSubscriber/PushPostToSocialMediaOnceItIsPublished.php b/web/modules/custom/blog/src/EventSubscriber/PushPostToSocialMediaOnceItIsPublished.php index 5a37f49..86173e4 100644 --- a/web/modules/custom/blog/src/EventSubscriber/PushPostToSocialMediaOnceItIsPublished.php +++ b/web/modules/custom/blog/src/EventSubscriber/PushPostToSocialMediaOnceItIsPublished.php @@ -40,7 +40,7 @@ final class PushPostToSocialMediaOnceItIsPublished implements EventSubscriberInt return; } - $queue = $this->queueFactory->get('opdavies_blog_push_post_to_social_media'); + $queue = $this->queueFactory->get('opdavies_blog.push_post_to_social_media'); $queue->createQueue(); $queue->createItem([ diff --git a/web/modules/custom/blog/src/Plugin/QueueWorker/PostPusherQueueWorker.php b/web/modules/custom/blog/src/Plugin/QueueWorker/PostPusherQueueWorker.php index ddc0ac6..eb42b2b 100644 --- a/web/modules/custom/blog/src/Plugin/QueueWorker/PostPusherQueueWorker.php +++ b/web/modules/custom/blog/src/Plugin/QueueWorker/PostPusherQueueWorker.php @@ -15,7 +15,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; /** * @QueueWorker( - * id = "opdavies_blog_push_post_to_social_media", + * id = "opdavies_blog.push_post_to_social_media", * title = "Push a blog post to social media", * cron = {"time": 30} * ) diff --git a/web/modules/custom/blog/tests/src/Kernel/PushToSocialMediaTest.php b/web/modules/custom/blog/tests/src/Kernel/PushToSocialMediaTest.php index ff83ec8..20eda97 100644 --- a/web/modules/custom/blog/tests/src/Kernel/PushToSocialMediaTest.php +++ b/web/modules/custom/blog/tests/src/Kernel/PushToSocialMediaTest.php @@ -71,7 +71,7 @@ final class PushToSocialMediaTest extends EntityKernelTestBase { $this->installSchema('node', ['node_access']); $this->queue = $this->container->get('queue') - ->get('opdavies_blog_push_post_to_social_media'); + ->get('opdavies_blog.push_post_to_social_media'); } }