diff --git a/pkg/enqueue-bundle/DependencyInjection/Compiler/BuildTopicMetaSubscribersPass.php b/pkg/enqueue-bundle/DependencyInjection/Compiler/BuildTopicMetaSubscribersPass.php index b2a339eaa..4eeadae04 100644 --- a/pkg/enqueue-bundle/DependencyInjection/Compiler/BuildTopicMetaSubscribersPass.php +++ b/pkg/enqueue-bundle/DependencyInjection/Compiler/BuildTopicMetaSubscribersPass.php @@ -16,6 +16,10 @@ public function process(ContainerBuilder $container) { $processorTagName = 'enqueue.client.processor'; + if (false == $container->hasDefinition('enqueue.client.meta.topic_meta_registry')) { + return; + } + $topicsSubscribers = []; foreach ($container->findTaggedServiceIds($processorTagName) as $serviceId => $tagAttributes) { $subscriptions = $this->extractSubscriptions($container, $serviceId, $tagAttributes);