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); - } }