public function __construct( private readonly FilesystemOperator
$filesystem,
private readonly SalesChannelContext
$context,
private readonly EventDispatcherInterface
$eventDispatcher,
?string
$domain = null
) { $this->
setDomainName($domain);
$filePath =
$this->
getTmpFilePath($context);
$this->
openGzip($filePath);
$this->
printHeader();
$this->tmpFiles
[] =
$filePath;
} /**
* @param Url[] $urls
*/
public function write(array
$urls): void
{ foreach ($urls as $url) { gzwrite($this->handle,
(string) $url);