diff --git a/Dockerfile b/Dockerfile index 9e0dbbdf..58a42e8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ COPY composer.lock /app RUN composer install --ignore-platform-reqs --optimize-autoloader \ --no-plugins --no-scripts --prefer-dist; -FROM php:8.3.10-cli-alpine3.20 AS tests +FROM php:8.5-cli-alpine AS tests # Postgres RUN set -ex \ diff --git a/composer.json b/composer.json index 4ab6147f..16baeaec 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ "ext-openssl": "*", "appwrite/appwrite": "^26.0", "utopia-php/database": "^6.0.0", - "utopia-php/storage": "3.*", + "utopia-php/storage": "4.*", "utopia-php/dsn": "0.2.*", "halaxa/json-machine": "^1.2" }, diff --git a/composer.lock b/composer.lock index 0b9acf14..ed272bb1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0f6a3deb25cfff3872ef143871d101b2", + "content-hash": "87dc885354b7a0f8d02241973e89186d", "packages": [ { "name": "appwrite/appwrite", @@ -2671,16 +2671,16 @@ }, { "name": "utopia-php/storage", - "version": "3.0.0", + "version": "4.0.0", "source": { "type": "git", "url": "https://github.com/utopia-php/storage.git", - "reference": "171746978543323c2536edacd8ad8e8d3fde401c" + "reference": "ad05f341a9a62a4de73c5312f4ab6fe69f7d0051" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/storage/zipball/171746978543323c2536edacd8ad8e8d3fde401c", - "reference": "171746978543323c2536edacd8ad8e8d3fde401c", + "url": "https://api.github.com/repos/utopia-php/storage/zipball/ad05f341a9a62a4de73c5312f4ab6fe69f7d0051", + "reference": "ad05f341a9a62a4de73c5312f4ab6fe69f7d0051", "shasum": "" }, "require": { @@ -2715,9 +2715,9 @@ ], "support": { "issues": "https://github.com/utopia-php/storage/issues", - "source": "https://github.com/utopia-php/storage/tree/3.0.0" + "source": "https://github.com/utopia-php/storage/tree/4.0.0" }, - "time": "2026-07-20T13:15:54+00:00" + "time": "2026-07-23T20:37:10+00:00" }, { "name": "utopia-php/telemetry", diff --git a/src/Migration/Destinations/CSV.php b/src/Migration/Destinations/CSV.php index 9e3f4037..d05f78dd 100644 --- a/src/Migration/Destinations/CSV.php +++ b/src/Migration/Destinations/CSV.php @@ -200,7 +200,7 @@ public function shutdown(): void } try { - $result = $this->local->transfer( + $result = $this->local->copy( $sourcePath, $destPath, $this->deviceForFiles, diff --git a/src/Migration/Destinations/JSON.php b/src/Migration/Destinations/JSON.php index 927c98af..fecef848 100644 --- a/src/Migration/Destinations/JSON.php +++ b/src/Migration/Destinations/JSON.php @@ -219,7 +219,7 @@ public function shutdown(): void } try { - $result = $this->local->transfer( + $result = $this->local->copy( $sourcePath, $destPath, $this->deviceForFiles, diff --git a/src/Migration/Sources/CSV.php b/src/Migration/Sources/CSV.php index 4043801c..0b6b725c 100644 --- a/src/Migration/Sources/CSV.php +++ b/src/Migration/Sources/CSV.php @@ -574,7 +574,7 @@ private function downloadToLocal( } try { - $success = $device->transfer( + $success = $device->copy( $filePath, $filePath, new Device\Local('/'), diff --git a/src/Migration/Sources/JSON.php b/src/Migration/Sources/JSON.php index 1aef8304..de41a138 100644 --- a/src/Migration/Sources/JSON.php +++ b/src/Migration/Sources/JSON.php @@ -309,7 +309,7 @@ private function downloadToLocal( } try { - $success = $device->transfer( + $success = $device->copy( $filePath, $filePath, new Device\Local('/'),