Skip to content

Commit

Permalink
fixed composer info
Browse files Browse the repository at this point in the history
  • Loading branch information
BahaaAlhagar committed Aug 1, 2018
1 parent e4fd684 commit bc0e4fa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"license": "MIT",
"authors": [
{
"name": ":BahaaAlhagar",
"email": ":[email protected]",
"homepage": ":github.com/BahaaAlhagar",
"name": "BahaaAlhagar",
"email": "[email protected]",
"homepage": "https://github.com/BahaaAlhagar",
"role": "Developer"
}
],
Expand Down
14 changes: 7 additions & 7 deletions src/YoutubeUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,21 +335,21 @@ public function getThumbnailUrl()
private function setup(Google_Client $client)
{
if(
!$this->app->config->get('youtube.client_id') ||
!$this->app->config->get('youtube.client_secret')
!$this->app->config->get('youtubeUploader.client_id') ||
!$this->app->config->get('youtubeUploader.client_secret')
) {
throw new Exception('A Google "client_id" and "client_secret" must be configured.');
}

$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->setClientId($this->app->config->get('youtubeUploader.client_id'));
$client->setClientSecret($this->app->config->get('youtubeUploader.client_secret'));
$client->setScopes($this->app->config->get('youtubeUploader.scopes'));
$client->setAccessType('offline');
$client->setApprovalPrompt('force');
$client->setRedirectUri(url(
$this->app->config->get('youtube.routes.prefix')
$this->app->config->get('youtubeUploader.routes.prefix')
. '/' .
$this->app->config->get('youtube.routes.redirect_uri')
$this->app->config->get('youtubeUploader.routes.redirect_uri')
));

return $this->client = $client;
Expand Down
2 changes: 1 addition & 1 deletion src/YoutubeUploaderServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function boot()
public function register()
{
$this->app->singleton('youtubeUploader', function($app) {
return new youtubeUploader($app, new \Google_Client);
return new YoutubeUploader($app, new \Google_Client);
});
}
}

0 comments on commit bc0e4fa

Please sign in to comment.