UrlInvalidator/UrlInvalidatorService.php
public function createUrlsTempFile()
    {
        $hash = md5(microtime(true));
        $links = array_merge($this->getUrls(), $this->getUrlsByDocumentParameter());
        $urlsFile = "/tmp/urls_{$hash}.txt";
        $urls = [];

        foreach ($links as $url) {
            $separator = ($url[0] !== '/') ? '/' : '';
            $urls[] = $this->baseUrl . $separator . $url;
        }
        file_put_contents($urlsFile, implode(PHP_EOL, $urls));

        return $urlsFile;
    }
public function createUrlsTempFile()
    {
        $hash = md5(microtime(true));
        $links = array_merge($this->getUrls(), $this->getUrlsByDocumentParameter());
        $urlsFile = "/tmp/urls_{$hash}.txt";
        $urls = [];

        foreach ($links as $url) {
            $separator = ($url[0] !== '/') ? '/' : '';
            $urls[] = $this->baseUrl . $separator . $url;
        }
        file_put_contents($urlsFile, implode(PHP_EOL, $urls));

        return $urlsFile;
    }
Creates temporary file to store urls.

@return string