DmitryDulepov\Realurl\Decoder\UrlDecoder::setRequestVariables PHP Method

setRequestVariables() protected method

Sets variables after the decoding.
protected setRequestVariables ( DmitryDulepov\Realurl\Cache\UrlCacheEntry $cacheEntry )
$cacheEntry DmitryDulepov\Realurl\Cache\UrlCacheEntry
    protected function setRequestVariables(UrlCacheEntry $cacheEntry)
    {
        if ($cacheEntry) {
            $requestVariables = $cacheEntry->getRequestVariables();
            $this->restoreIgnoredUrlParameters($requestVariables);
            $requestVariables['id'] = $cacheEntry->getPageId();
            $_SERVER['QUERY_STRING'] = $this->createQueryStringFromParameters($requestVariables);
            // Setting info in TSFE
            $this->caller->mergingWithGetVars($this->makeRealPhpArrayFromRequestVars($requestVariables));
            $this->caller->id = $cacheEntry->getPageId();
            if ($this->mimeType) {
                header('Content-type: ' . $this->mimeType);
                $this->mimeType = null;
            }
        }
    }