From 2eb117c5581984742c6262b79df5a80a3a0e3937 Mon Sep 17 00:00:00 2001 From: Jon Erickson Date: Mon, 30 Sep 2024 20:11:26 -0700 Subject: [PATCH] Revert an oopsie --- src/Adapters/TemporaryDirectoryAdapter.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/Adapters/TemporaryDirectoryAdapter.php b/src/Adapters/TemporaryDirectoryAdapter.php index 27be19e7..fd16db2e 100644 --- a/src/Adapters/TemporaryDirectoryAdapter.php +++ b/src/Adapters/TemporaryDirectoryAdapter.php @@ -5,17 +5,7 @@ use Spatie\Backup\Contracts\TemporaryDirectory; use Spatie\TemporaryDirectory\TemporaryDirectory as BaseTemporaryDirectory; -class TemporaryDirectoryAdapter implements TemporaryDirectory +class TemporaryDirectoryAdapter extends BaseTemporaryDirectory implements TemporaryDirectory { - protected BaseTemporaryDirectory $temporaryDirectory; - public function __construct(string $location = '') - { - $this->temporaryDirectory = new BaseTemporaryDirectory($location); - } - - public function __call(string $name, array $arguments): mixed - { - return $this->temporaryDirectory->{$name}(...$arguments); - } }