22 lines
525 B
PHP
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;
|
|
}
|