php-fcm
php-fcm copied to clipboard
Some simplifications and code polish
See the individual commit messages and diffs.
Breaking changes:
ext-jsonis now declared as a dependency. It was actually a dependency before, but now it's declared, which might break some builds.Request::getBody()was renamed toRequest::buildJsonBody(). Most clients won't care, as they don't call this function.FcmClient::send()does not throwGuzzleExceptionanymore, but now wraps it intoFcmClientException(same exception type as when the server returns an error).