Request/ParamFetcher.php 1 location
|
@@ 210-218 (lines=9) @@
|
| 207 |
|
} |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
private function getRequest(): Request |
| 211 |
|
{ |
| 212 |
|
$request = $this->requestStack->getCurrentRequest(); |
| 213 |
|
if (null === $request) { |
| 214 |
|
throw new \RuntimeException('There is no current request.'); |
| 215 |
|
} |
| 216 |
|
|
| 217 |
|
return $request; |
| 218 |
|
} |
| 219 |
|
} |
| 220 |
|
|
Negotiation/FormatNegotiator.php 1 location
|
@@ 147-155 (lines=9) @@
|
| 144 |
|
return $mimeTypes; |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
private function getRequest(): Request |
| 148 |
|
{ |
| 149 |
|
$request = $this->requestStack->getCurrentRequest(); |
| 150 |
|
if (null === $request) { |
| 151 |
|
throw new \RuntimeException('There is no current request.'); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
return $request; |
| 155 |
|
} |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
if (method_exists(BaseNegotiator::class, 'getOrderedElements')) { |