fixup! chore(app framework)!: catch missing non-optional controller parameter

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
chore/catch-missing-non-optional-controller-parameter
Christoph Wurst 1 year ago
parent 0a2b7c4788
commit ebe040d1f7
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8

@ -28,7 +28,6 @@ namespace OC\AppFramework\Exceptions;
use Exception;
class ParameterMissingException extends Exception {
private string $parameterName;
public function __construct(string $controllerName, string $methodName, string $parameterName) {
@ -39,5 +38,4 @@ class ParameterMissingException extends Exception {
public function getParameterName(): string {
return $this->parameterName;
}
}

@ -34,7 +34,6 @@ use OCP\AppFramework\Http\JSONResponse;
* @see https://github.com/omniti-labs/jsend
*/
class ApiResponse extends JSONResponse {
public static function success($data = null, int $statusCode = Http::STATUS_OK): self {
return new self(
[
@ -73,5 +72,4 @@ class ApiResponse extends JSONResponse {
private function __construct($data = [], $statusCode = Http::STATUS_OK) {
parent::__construct($data, $statusCode);
}
}

Loading…
Cancel
Save