Skip to content

Commit 6255d48

Browse files
authored
Merge pull request #182 from php-enqueue/bundle-do-to-fail-if-client-disabled
[bundle] do not use client's related stuff if it is disabled
2 parents af93ec6 + 321b01c commit 6255d48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/enqueue-bundle/DependencyInjection/Compiler/BuildTopicMetaSubscribersPass.php

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ public function process(ContainerBuilder $container)
1616
{
1717
$processorTagName = 'enqueue.client.processor';
1818

19+
if (false == $container->hasDefinition('enqueue.client.meta.topic_meta_registry')) {
20+
return;
21+
}
22+
1923
$topicsSubscribers = [];
2024
foreach ($container->findTaggedServiceIds($processorTagName) as $serviceId => $tagAttributes) {
2125
$subscriptions = $this->extractSubscriptions($container, $serviceId, $tagAttributes);

0 commit comments

Comments
 (0)