diff --git a/README.md b/README.md index 6820e7f..4aafa78 100644 --- a/README.md +++ b/README.md @@ -424,7 +424,6 @@ return [ 'clientId' => '', 'clientSecret' => '', 'refreshToken' => '', - 'folderId' => '', // 'teamDriveId' => '', // 'sharedFolderId' => '', // 'options' => [], diff --git a/src/GoogleDriveComponent.php b/src/GoogleDriveComponent.php index da2902b..63fa0e9 100644 --- a/src/GoogleDriveComponent.php +++ b/src/GoogleDriveComponent.php @@ -20,7 +20,6 @@ * 'clientId' => '', * 'clientSecret' => '', * 'refreshToken' => '', - * 'folderId' => '', * // 'teamDriveId' => '', * // 'sharedFolderId' => '', * // 'options' => [], @@ -56,11 +55,6 @@ class GoogleDriveComponent extends AbstractComponent */ public $refreshToken; - /** - * @var string - */ - public $folderId; - /** * @var string */ @@ -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); } }