aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/downloader/git_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/git_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/git_downloader.rs')
-rw-r--r--crates/shirabe/src/downloader/git_downloader.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/crates/shirabe/src/downloader/git_downloader.rs b/crates/shirabe/src/downloader/git_downloader.rs
index dd5f4e41..5e57de52 100644
--- a/crates/shirabe/src/downloader/git_downloader.rs
+++ b/crates/shirabe/src/downloader/git_downloader.rs
@@ -19,12 +19,11 @@ use crate::util::Url;
use indexmap::IndexMap;
use shirabe_external_packages::composer::pcre::{CaptureKey, Preg};
use shirabe_php_shim::{
- PhpMixed, RuntimeException, array_map, basename, dirname, implode, in_array_strict, is_dir,
- php_regex, preg_quote, realpath, rtrim, strlen, strpos, substr, trim, version_compare,
+ PhpMixed, RuntimeException, array_map, basename, dirname, impl_php_class, implode,
+ in_array_strict, is_dir, php_regex, preg_quote, realpath, rtrim, strlen, strpos, substr, trim,
+ version_compare,
};
-shirabe_php_shim::impl_php_class!(GitDownloader, r"Composer\Downloader\GitDownloader");
-
#[derive(Debug)]
pub struct GitDownloader {
inner: VcsDownloaderBase,
@@ -37,6 +36,8 @@ pub struct GitDownloader {
cached_packages: std::cell::RefCell<IndexMap<i64, IndexMap<String, bool>>>,
}
+impl_php_class!(GitDownloader, r"Composer\Downloader\GitDownloader");
+
impl GitDownloader {
pub fn new(
io: std::rc::Rc<std::cell::RefCell<dyn IOInterface>>,