findTaggedServiceIds($this->tagName) as $id => $tags) { $definition = $container->findDefinition($id); if ($definition->isAbstract()) { continue; } $className = $definition->getClass() ?? $id; if (!is_a($className, FileRendererInterface::class, true)) { throw new \InvalidArgumentException( 'Service "' . $id . '" is tagged as "' . $this->tagName . '", but its class "' . $className . '" does not implement ' . FileRendererInterface::class . '.', 1784818672 ); } } } }