Imagine/Cache/Resolver/WebPathResolver.php 1 location
|
@@ 124-130 (lines=7) @@
|
| 121 |
|
/** |
| 122 |
|
* {@inheritdoc} |
| 123 |
|
*/ |
| 124 |
|
protected function getFileUrl($path, $filter) |
| 125 |
|
{ |
| 126 |
|
// crude way of sanitizing URL scheme ("protocol") part |
| 127 |
|
$path = str_replace('://', '---', $path); |
| 128 |
|
|
| 129 |
|
return $this->cachePrefix.'/'.$filter.'/'.ltrim($path, '/'); |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
/** |
| 133 |
|
* @return string |
Imagine/Cache/Resolver/FlysystemResolver.php 1 location
|
@@ 83-89 (lines=7) @@
|
| 80 |
|
/** |
| 81 |
|
* {@inheritdoc} |
| 82 |
|
*/ |
| 83 |
|
protected function getFileUrl($path, $filter) |
| 84 |
|
{ |
| 85 |
|
// crude way of sanitizing URL scheme ("protocol") part |
| 86 |
|
$path = str_replace('://', '---', $path); |
| 87 |
|
|
| 88 |
|
return $this->cachePrefix.'/'.$filter.'/'.ltrim($path, '/'); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
/** |
| 92 |
|
* Resolves filtered path for rendering in the browser. |