Skip to content

Commit 97e2f99

Browse files
authored
Merge pull request #958 from NicolasGuilloux/feature/fix-empty-class
Fix empty class for autowired services (Fix #957)
2 parents b11fd8a + 684e83b commit 97e2f99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/enqueue/Symfony/Client/DependencyInjection/BuildCommandSubscriberRoutesPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function process(ContainerBuilder $container): void
3535
throw new \LogicException('The command subscriber tag could not be applied to a service created by factory.');
3636
}
3737

38-
$processorClass = $processorDefinition->getClass();
38+
$processorClass = $processorDefinition->getClass() ?? $serviceId;
3939
if (false == class_exists($processorClass)) {
4040
throw new \LogicException(sprintf('The processor class "%s" could not be found.', $processorClass));
4141
}

pkg/enqueue/Symfony/Client/DependencyInjection/BuildTopicSubscriberRoutesPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function process(ContainerBuilder $container): void
3535
throw new \LogicException('The topic subscriber tag could not be applied to a service created by factory.');
3636
}
3737

38-
$processorClass = $processorDefinition->getClass();
38+
$processorClass = $processorDefinition->getClass() ?? $serviceId;
3939
if (false == class_exists($processorClass)) {
4040
throw new \LogicException(sprintf('The processor class "%s" could not be found.', $processorClass));
4141
}

0 commit comments

Comments
 (0)