aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/downloader/path_downloader.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-07 07:15:08 +0900
committernsfisis <nsfisis@gmail.com>2026-08-07 07:15:08 +0900
commite7f83b74e8f8c12b4a1b0f9f613387b03858dbdd (patch)
tree37fba97742e2d16ff1494eba600da52a0aac9fcf /crates/shirabe/src/downloader/path_downloader.rs
parent759b2980e70dfb8960238f75d68bb6dddce25414 (diff)
downloadphp-shirabe-e7f83b74e8f8c12b4a1b0f9f613387b03858dbdd.tar.gz
php-shirabe-e7f83b74e8f8c12b4a1b0f9f613387b03858dbdd.tar.zst
php-shirabe-e7f83b74e8f8c12b4a1b0f9f613387b03858dbdd.zip
chore: use shirabe_php_shim::impl_php_class
Diffstat (limited to 'crates/shirabe/src/downloader/path_downloader.rs')
-rw-r--r--crates/shirabe/src/downloader/path_downloader.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/downloader/path_downloader.rs b/crates/shirabe/src/downloader/path_downloader.rs
index ec07d057..f10da72a 100644
--- a/crates/shirabe/src/downloader/path_downloader.rs
+++ b/crates/shirabe/src/downloader/path_downloader.rs
@@ -24,16 +24,16 @@ use indexmap::IndexMap;
use shirabe_external_packages::symfony::filesystem::Filesystem as SymfonyFilesystem;
use shirabe_php_shim::{
DIRECTORY_SEPARATOR, PHP_WINDOWS_VERSION_MAJOR, PHP_WINDOWS_VERSION_MINOR, PhpMixed,
- RuntimeException, file_exists, function_exists, is_dir, realpath,
+ RuntimeException, file_exists, function_exists, impl_php_class, is_dir, realpath,
};
-shirabe_php_shim::impl_php_class!(PathDownloader, r"Composer\Downloader\PathDownloader");
-
#[derive(Debug)]
pub struct PathDownloader {
pub(crate) inner: FileDownloader,
}
+impl_php_class!(PathDownloader, r"Composer\Downloader\PathDownloader");
+
impl PathDownloader {
const STRATEGY_SYMLINK: i64 = 10;
const STRATEGY_MIRROR: i64 = 20;