src/Request/JsonProcessor.php 1 location
|
@@ 407-415 (lines=9) @@
|
| 404 |
|
* @return \Comodojo\RpcServer\RpcMethod |
| 405 |
|
* @throws \Comodojo\Exception\RpcException |
| 406 |
|
*/ |
| 407 |
|
private function checkRequestSustainability($request_method) { |
| 408 |
|
|
| 409 |
|
$method = $this->parameters->methods()->get($request_method); |
| 410 |
|
|
| 411 |
|
if ( is_null($method) ) throw new RpcException("Method not found", -32601); |
| 412 |
|
|
| 413 |
|
return $method; |
| 414 |
|
|
| 415 |
|
} |
| 416 |
|
|
| 417 |
|
/** |
| 418 |
|
* Check if a request is consistent (i.e. if it matches one of method's signatures) |
src/Request/XmlProcessor.php 1 location
|
@@ 206-214 (lines=9) @@
|
| 203 |
|
* @return \Comodojo\RpcServer\RpcMethod |
| 204 |
|
* @throws \Comodojo\Exception\RpcException |
| 205 |
|
*/ |
| 206 |
|
private function checkRequestSustainability() { |
| 207 |
|
|
| 208 |
|
$method = $this->parameters->methods()->get($this->method); |
| 209 |
|
|
| 210 |
|
if ( is_null($method) ) throw new RpcException("Method not found", -32601); |
| 211 |
|
|
| 212 |
|
return $method; |
| 213 |
|
|
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
/** |
| 217 |
|
* Check if a request is consistent (i.e. if it matches one of method's signatures) |