mirror of https://github.com/nextcloud/server
fixup! chore(app framework)!: catch missing non-optional controller parameter
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
0a2b7c4788
commit
ebe040d1f7
|
@ -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…
Reference in New Issue