openGzip example


    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) {
            
Home | Imprint | This part of the site doesn't use cookies.