Due to PHP Bug #53727, is_subclass_of might return inconsistent results on some PHP versions if \IrishDan\NotificationBu...AdapterInterface::class can be an interface. If so, you could instead use ReflectionClass::implementsInterface.
Loading history...
34
throw new \InvalidArgumentException(sprintf('Service "%s" must implement interface "%s".', $id, MakerInterface::class));
35
}
36
37
$subscriberDefinition->addMethodCall('addAdapter', [$id, new Reference($id)]);