Imagine/Cache/Resolver/FlysystemResolver.php 1 location
|
@@ 168-174 (lines=7) @@
|
| 165 |
|
/** |
| 166 |
|
* {@inheritdoc} |
| 167 |
|
*/ |
| 168 |
|
protected function getFileUrl($path, $filter) |
| 169 |
|
{ |
| 170 |
|
// crude way of sanitizing URL scheme ("protocol") part |
| 171 |
|
$path = str_replace('://', '---', $path); |
| 172 |
|
|
| 173 |
|
return $this->cachePrefix.'/'.$filter.'/'.ltrim($path, '/'); |
| 174 |
|
} |
| 175 |
|
} |
| 176 |
|
|
Imagine/Cache/Resolver/WebPathResolver.php 1 location
|
@@ 167-173 (lines=7) @@
|
| 164 |
|
); |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
private function getFullPath($path, $filter) |
| 168 |
|
{ |
| 169 |
|
// crude way of sanitizing URL scheme ("protocol") part |
| 170 |
|
$path = str_replace('://', '---', $path); |
| 171 |
|
|
| 172 |
|
return $this->cachePrefix.'/'.$filter.'/'.ltrim($path, '/'); |
| 173 |
|
} |
| 174 |
|
} |
| 175 |
|
|