From 7046e4db49b80c751b5ec12e7644fb67c54276fa Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Tue, 9 Feb 2016 14:42:48 -0800 Subject: [PATCH] mention removal of loadServiceAccountJson in UPGRADING.md --- UPGRADING.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/UPGRADING.md b/UPGRADING.md index 1e1174b3e..f654570a4 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -141,6 +141,24 @@ $user_to_impersonate = 'user@example.org'; $client->setSubject($user_to_impersonate); ``` +Additionally, `Google_Client::loadServiceAccountJson` has been removed in favor +of `Google_Client::setAuthConfig`: + +**Before** + +```php +$scopes = [ Google_Service_Books::BOOKS ]; +$client->loadServiceAccountJson('/path/to/service-account.json', $scopes); +``` + +**After** + +```php +$scopes = [ Google_Service_Books::BOOKS ]; +$client->setAuthConfig('/path/to/service-account.json'); +$client->setScopes($scopes); +``` + ## `Google_Auth_AppIdentity` has been removed For App Engine authentication, we now use the underlying [`google/auth`][Google Auth] and