private readonly SalesChannelContextServiceInterface
$salesChannelContextService,
private readonly AbstractTranslator
$translator,
private readonly SalesChannelContextPersister
$contextPersister,
private readonly Connection
$connection,
private readonly int
$readBufferSize,
private readonly SeoUrlPlaceholderHandlerInterface
$seoUrlPlaceholderHandler,
Environment
$twig,
private readonly ProductDefinition
$productDefinition,
private readonly LanguageLocaleCodeProvider
$languageLocaleProvider,
TwigVariableParserFactory
$parserFactory ) { $this->twigVariableParser =
$parserFactory->
getParser($twig);
} public function generate(ProductExportEntity
$productExport, ExportBehavior
$exportBehavior): ?ProductExportResult
{ $contextToken = Uuid::
randomHex();
$this->contextPersister->
save( $contextToken,
[ SalesChannelContextService::CURRENCY_ID =>
$productExport->
getCurrencyId(),
],
$productExport->
getSalesChannelId() );