Skip to content

Commit

Permalink
Merge pull request #2 from ganigeorgiev/master
Browse files Browse the repository at this point in the history
Removed php version requirement from composer and defined default scope value
  • Loading branch information
exileed authored Jun 19, 2019
2 parents 4c56a1d + e18e7c8 commit 876a87a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"keywords": ["yii2", "authclient", "oauth", "gitlab"],
"homepage": "http://github.com/yiiauth/gitlab",
"require": {
"php": "^7.0",
"yiisoft/yii2-authclient": "~2.1"
},
"license": "MIT",
Expand All @@ -19,4 +18,4 @@
"yiiauth\\gitlab\\": "src"
}
}
}
}
7 changes: 5 additions & 2 deletions src/GitLabClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ class GitLabClient extends OAuth2
* {@inheritdoc}
*/
public $apiBaseUrl = '/api/v4/';

/**
* {@inheritdoc}
*/
public $scope = 'read_user';
/**
* Domain instance gitlab
* @var string
Expand All @@ -62,7 +65,7 @@ class GitLabClient extends OAuth2
public function init()
{
parent::init();

$this->authUrl = $this->domain.$this->authUrl;
$this->tokenUrl = $this->domain.$this->tokenUrl;
$this->apiBaseUrl = $this->domain.$this->apiBaseUrl;
Expand Down

0 comments on commit 876a87a

Please sign in to comment.