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 79ba9cc commit 6e02260
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ return [
'clientId' => '',
'clientSecret' => '',
'refreshToken' => '',
'folderId' => '',
// 'teamDriveId' => '',
// 'sharedFolderId' => '',
// 'options' => [],
Expand Down
13 changes: 1 addition & 12 deletions src/GoogleDriveComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
* 'clientId' => '',
* 'clientSecret' => '',
* 'refreshToken' => '',
* 'folderId' => '',
* // 'teamDriveId' => '',
* // 'sharedFolderId' => '',
* // 'options' => [],
Expand Down Expand Up @@ -56,11 +55,6 @@ class GoogleDriveComponent extends AbstractComponent
*/
public $refreshToken;

/**
* @var string
*/
public $folderId;

/**
* @var string
*/
Expand Down Expand Up @@ -125,12 +119,7 @@ protected function initAdapter()

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

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

return $adapter;
return new GoogleDriveAdapter($service, $this->prefix, $this->options);
}
}

0 comments on commit 6e02260

Please sign in to comment.