From 6e02260709dfe6e66b11f5d4bdc8d2993ce7cf09 Mon Sep 17 00:00:00 2001 From: Sugeng Sulistiyawan Date: Fri, 18 Oct 2024 17:51:41 +0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 - src/GoogleDriveComponent.php | 13 +------------ 2 files changed, 1 insertion(+), 13 deletions(-) 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); } }