src/POData/UriProcessor/UriProcessor.php 1 location
|
@@ 525-533 (lines=9) @@
|
| 522 |
|
* @param $requestMethod |
| 523 |
|
* @throws ODataException |
| 524 |
|
*/ |
| 525 |
|
public function checkUriValidForSuppliedVerb($uriProcessor, $resourceSet, $keyDescriptor, $requestMethod) |
| 526 |
|
{ |
| 527 |
|
if (!$resourceSet || !$keyDescriptor) { |
| 528 |
|
$url = $uriProcessor->getService()->getHost()->getAbsoluteRequestUri()->getUrlAsString(); |
| 529 |
|
throw ODataException::createBadRequestError( |
| 530 |
|
Messages::badRequestInvalidUriForThisVerb($url, $requestMethod) |
| 531 |
|
); |
| 532 |
|
} |
| 533 |
|
} |
| 534 |
|
} |
| 535 |
|
|
src/POData/UriProcessor/UriProcessorNew.php 1 location
|
@@ 300-308 (lines=9) @@
|
| 297 |
|
* @param $requestMethod |
| 298 |
|
* @throws ODataException |
| 299 |
|
*/ |
| 300 |
|
protected function checkUriValidForSuppliedVerb($resourceSet, $keyDescriptor, $requestMethod) |
| 301 |
|
{ |
| 302 |
|
if (!$resourceSet || !$keyDescriptor) { |
| 303 |
|
$url = $this->getService()->getHost()->getAbsoluteRequestUri()->getUrlAsString(); |
| 304 |
|
throw ODataException::createBadRequestError( |
| 305 |
|
Messages::badRequestInvalidUriForThisVerb($url, $requestMethod) |
| 306 |
|
); |
| 307 |
|
} |
| 308 |
|
} |
| 309 |
|
|
| 310 |
|
/** |
| 311 |
|
* @param $segment |