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

Commit

Permalink
Removing setClassConfig and application name form config as not used
Browse files Browse the repository at this point in the history
  • Loading branch information
joedawson committed Aug 5, 2017
1 parent 01df168 commit c95e010
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"require": {
"php": "^7.0",
"illuminate/support": "^5.4",
"google/apiclient": "^1.1",
"google/apiclient": "^2.2",
"nesbot/carbon": "^1.22"
},
"require-dev": {
Expand Down
5 changes: 0 additions & 5 deletions config/youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

return [

/**
* Application Name.
*/
'application_name' => env('APP_NAME', 'Your Application'),

/**
* Client ID.
*/
Expand Down
2 changes: 0 additions & 2 deletions src/Youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,11 @@ private function setup(Google_Client $client)
throw new Exception('A Google "client_id" and "client_secret" must be configured.');
}

$client->setApplicationName($this->app->config->get('youtube.application_name'));
$client->setClientId($this->app->config->get('youtube.client_id'));
$client->setClientSecret($this->app->config->get('youtube.client_secret'));
$client->setScopes($this->app->config->get('youtube.scopes'));
$client->setAccessType('offline');
$client->setApprovalPrompt('force');
$client->setClassConfig('Google_Http_Request', 'disable_gzip', true);
$client->setRedirectUri(url(
$this->app->config->get('youtube.routes.prefix')
. '/' .
Expand Down

0 comments on commit c95e010

Please sign in to comment.