Due to PHP Bug #53727, is_subclass_of might return inconsistent results on some PHP versions if \Symfony\Component\Messe...sageBusInterface::class can be an interface. If so, you could instead use ReflectionClass::implementsInterface.
Loading history...
20
return;
21
}
22
23
// Remove wired services if the Messenger component actually isn't enabled: