From 321b01c52b5c10df7fecb95f23493570f85384f6 Mon Sep 17 00:00:00 2001 From: Maksim Kotlyar Date: Mon, 28 Aug 2017 12:14:44 +0300 Subject: [PATCH] [bundle] do not use client's related stuff if it is disabled --- .../Compiler/BuildTopicMetaSubscribersPass.php | 4 ++++ 1 file changed, 4 insertions(+) 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);