VirtualRESTService.php (mediawiki-1.31.1) | : | VirtualRESTService.php (mediawiki-1.32.0) | ||
---|---|---|---|---|
skipping to change at line 54 | skipping to change at line 54 | |||
$this->params = $params; | $this->params = $params; | |||
} | } | |||
/** | /** | |||
* Return the name of this service, in a form suitable for error | * Return the name of this service, in a form suitable for error | |||
* reporting or debugging. | * reporting or debugging. | |||
* | * | |||
* @return string The name of the service behind this VRS object. | * @return string The name of the service behind this VRS object. | |||
*/ | */ | |||
public function getName() { | public function getName() { | |||
return isset( $this->params['name'] ) ? $this->params['name'] : s tatic::class; | return $this->params['name'] ?? static::class; | |||
} | } | |||
/** | /** | |||
* Prepare virtual HTTP(S) requests (for this service) for execution | * Prepare virtual HTTP(S) requests (for this service) for execution | |||
* | * | |||
* This method should mangle any of the $reqs entry fields as needed: | * This method should mangle any of the $reqs entry fields as needed: | |||
* - url : munge the URL to have an absolute URL with a protocol | * - url : munge the URL to have an absolute URL with a protocol | |||
* and encode path components as needed by the backend [re quired] | * and encode path components as needed by the backend [re quired] | |||
* - query : include any authentication signatures/parameters [as ne eded] | * - query : include any authentication signatures/parameters [as ne eded] | |||
* - headers : include any authentication tokens/headers [as needed] | * - headers : include any authentication tokens/headers [as needed] | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |