Move API Response methods into an own class to make them mockable
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
namespace Friendica\Module\Api\Twitter\Account;
|
||||
|
||||
use Friendica\Module\Api\ApiResponse;
|
||||
use Friendica\Module\BaseApi;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
||||
@@ -51,6 +52,6 @@ class RateLimitStatus extends BaseApi
|
||||
];
|
||||
}
|
||||
|
||||
self::exit('hash', ['hash' => $hash], $parameters['extension'] ?? null);
|
||||
ApiResponse::exit('hash', ['hash' => $hash], $parameters['extension'] ?? null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user