Skip to content
This repository was archived by the owner on Aug 27, 2023. It is now read-only.

Commit c95e010

Browse files
committed
Removing setClassConfig and application name form config as not used
1 parent 01df168 commit c95e010

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"require": {
1212
"php": "^7.0",
1313
"illuminate/support": "^5.4",
14-
"google/apiclient": "^1.1",
14+
"google/apiclient": "^2.2",
1515
"nesbot/carbon": "^1.22"
1616
},
1717
"require-dev": {

config/youtube.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
return [
44

5-
/**
6-
* Application Name.
7-
*/
8-
'application_name' => env('APP_NAME', 'Your Application'),
9-
105
/**
116
* Client ID.
127
*/

src/Youtube.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,11 @@ private function setup(Google_Client $client)
285285
throw new Exception('A Google "client_id" and "client_secret" must be configured.');
286286
}
287287

288-
$client->setApplicationName($this->app->config->get('youtube.application_name'));
289288
$client->setClientId($this->app->config->get('youtube.client_id'));
290289
$client->setClientSecret($this->app->config->get('youtube.client_secret'));
291290
$client->setScopes($this->app->config->get('youtube.scopes'));
292291
$client->setAccessType('offline');
293292
$client->setApprovalPrompt('force');
294-
$client->setClassConfig('Google_Http_Request', 'disable_gzip', true);
295293
$client->setRedirectUri(url(
296294
$this->app->config->get('youtube.routes.prefix')
297295
. '/' .

0 commit comments

Comments
 (0)