Transform ApiResponse::exit() into dynamic method

This commit is contained in:
Philipp 2021-11-12 20:03:27 +01:00
parent 4309f814e0
commit ea0f41ecf0
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
13 changed files with 27 additions and 30 deletions

View file

@ -21,8 +21,8 @@
namespace Friendica\Module\Api\GNUSocial\Help;
use Friendica\Module\Api\ApiResponse;
use Friendica\Module\BaseApi;
use Friendica\DI;
/**
* API endpoint: /api/help/test
@ -37,6 +37,6 @@ class Test extends BaseApi
$ok = 'ok';
}
ApiResponse::exit('ok', ['ok' => $ok], $parameters['extension'] ?? null);
DI::apiResponse()->exit('ok', ['ok' => $ok], $parameters['extension'] ?? null);
}
}