Imbo\EventListener\ImageTransformationCache::getCacheFilePath PHP Method

getCacheFilePath() private method

Get the absolute path to response in the cache
private getCacheFilePath ( Request $request ) : string
$request Imbo\Http\Request\Request The current request instance
return string Returns the absolute path to the cache file
    private function getCacheFilePath(Request $request)
    {
        $hash = $this->getCacheKey($request);
        $dir = $this->getCacheDir($request->getUser(), $request->getImageIdentifier());
        return sprintf('%s/%s/%s/%s/%s', $dir, $hash[0], $hash[1], $hash[2], $hash);
    }