Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sugeng-sulistiyawan committed Oct 18, 2024
1 parent d5e7410 commit 79ba9cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ return [
'clientId' => '',
'clientSecret' => '',
'refreshToken' => '',
'folder' => '',
'folderId' => '',
// 'teamDriveId' => '',
// 'sharedFolderId' => '',
// 'options' => [],
Expand Down
10 changes: 3 additions & 7 deletions src/GoogleDriveComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* 'clientId' => '',
* 'clientSecret' => '',
* 'refreshToken' => '',
* 'folder' => '',
* 'folderId' => '',
* // 'teamDriveId' => '',
* // 'sharedFolderId' => '',
* // 'options' => [],
Expand Down Expand Up @@ -59,7 +59,7 @@ class GoogleDriveComponent extends AbstractComponent
/**
* @var string
*/
public $folder;
public $folderId;

/**
* @var string
Expand All @@ -86,10 +86,6 @@ class GoogleDriveComponent extends AbstractComponent
*/
public function init()
{
if (empty($this->applicationName)) {
throw new InvalidConfigException('The "applicationName" property must be set.');
}

if (empty($this->clientId)) {
throw new InvalidConfigException('The "clientId" property must be set.');
}
Expand Down Expand Up @@ -129,7 +125,7 @@ protected function initAdapter()

$this->client = $client;
$service = new Drive($this->client);
$adapter = new GoogleDriveAdapter($service, $this->folder, $this->options);
$adapter = new GoogleDriveAdapter($service, $this->folderId, $this->options);

if ($this->prefix) {
$adapter = new PathPrefixedAdapter($adapter, $this->prefix);
Expand Down

0 comments on commit 79ba9cc

Please sign in to comment.