source/Snapshotter/AggregationHandler/Controllers/SnapshotsController.php 1 location
|
@@ 209-219 (lines=11) @@
|
| 206 |
|
* @param ServerRequestInterface $request |
| 207 |
|
* @return \Psr\Http\Message\UriInterface |
| 208 |
|
*/ |
| 209 |
|
protected function removeBackURI(ServerRequestInterface $request) |
| 210 |
|
{ |
| 211 |
|
$query = $request->getQueryParams(); |
| 212 |
|
if (array_key_exists('backToList', $query)) { |
| 213 |
|
$uri = $this->vault->uri('snapshots'); |
| 214 |
|
} else { |
| 215 |
|
$uri = $request->getServerParams()['HTTP_REFERER']; |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
return $uri; |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
/** |
| 222 |
|
* Suppress snapshot incident. Can suppress only stored snapshots. |
source/Snapshotter/FileHandler/Controllers/SnapshotsController.php 1 location
|
@@ 152-162 (lines=11) @@
|
| 149 |
|
* @param ServerRequestInterface $request |
| 150 |
|
* @return \Psr\Http\Message\UriInterface |
| 151 |
|
*/ |
| 152 |
|
protected function removeBackURI(ServerRequestInterface $request) |
| 153 |
|
{ |
| 154 |
|
$query = $request->getQueryParams(); |
| 155 |
|
if (array_key_exists('backToList', $query)) { |
| 156 |
|
$uri = $this->vault->uri('snapshots'); |
| 157 |
|
} else { |
| 158 |
|
$uri = $request->getServerParams()['HTTP_REFERER']; |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
return $uri; |
| 162 |
|
} |
| 163 |
|
} |