Skip to content

Commit

Permalink
For google/apiclient >= 2.8.0 you need new Google\Client();
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnCa-X committed Oct 29, 2020
1 parent 0f1eafc commit e402000
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"php": ">=7.1",
"nette/application": "^3.0",
"facebook/graph-sdk": "^5.6",
"google/apiclient": "^2.2",
"google/apiclient": "^2.8",
"kertz/twitteroauth": "dev-master"
},
"require-dev": {
Expand All @@ -30,6 +30,9 @@
"tracy/tracy": "^2.4",
"nette/tester": "^2.0"
},
"conflict": {
"google/apiclient": "<2.8.0"
},
"autoload": {
"classmap": [
"src/"
Expand Down
3 changes: 2 additions & 1 deletion src/GoogleLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace VencaX;

use Exception;
use Google;
use Nette;

class GoogleLogin extends BaseLogin
Expand Down Expand Up @@ -31,7 +32,7 @@ public function __construct($params, $cookieName, Nette\Http\IResponse $httpResp
$this->httpResponse = $httpResponse;
$this->httpRequest = $httpRequest;

$this->client = new \Google_Client();
$this->client = new Google\Client();

$this->client->setClientId($this->params['clientId']);
$this->client->setClientSecret($this->params['clientSecret']);
Expand Down

0 comments on commit e402000

Please sign in to comment.