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 |
|
|
Utility/Path/PathResolver.php 1 location
|
@@ 51-57 (lines=7) @@
|
| 48 |
|
/** |
| 49 |
|
* {@inheritdoc} |
| 50 |
|
*/ |
| 51 |
|
public function getFileUrl($path, $filter) |
| 52 |
|
{ |
| 53 |
|
// crude way of sanitizing URL scheme ("protocol") part |
| 54 |
|
$path = str_replace('://', '---', $path); |
| 55 |
|
|
| 56 |
|
return $this->cachePrefix.'/'.$filter.'/'.ltrim($path, '/'); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
/** |
| 60 |
|
* {@inheritdoc} |