Files
kupshop/bundles/KupShop/FeedsBundle/Formatter/StreamedFormatterInterface.php
2025-08-02 16:30:27 +02:00

22 lines
525 B
PHP

<?php
declare(strict_types=1);
namespace KupShop\FeedsBundle\Formatter;
use KupShop\FeedsBundle\Dto\FeedItem;
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
#[AutoconfigureTag(name: 'kupshop.feeds.streamed_formatter')]
interface StreamedFormatterInterface
{
public static function getType(): string;
public static function getContentType(): string;
/**
* @param \Generator<int, FeedItem> $data
*/
public function process(array $configuration, \Generator $data): void;
}