aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-10 20:31:00 +0900
committernsfisis <nsfisis@gmail.com>2026-05-10 20:31:00 +0900
commit59bab6efee41a196b0d9d392167c536abbe068ba (patch)
treef36ca1c8534cf703b357d3f9090ba85efd9a9b74 /crates/mozart/src
parent24bb31c109332ae982b7091ffcd5183442ce6f6f (diff)
downloadphp-mozart-59bab6efee41a196b0d9d392167c536abbe068ba.tar.gz
php-mozart-59bab6efee41a196b0d9d392167c536abbe068ba.tar.zst
php-mozart-59bab6efee41a196b0d9d392167c536abbe068ba.zip
refactor(downloader): introduce top-level downloader module
Move VCS downloaders and DownloadManager out of vcs/repository into a new top-level downloader module mirroring Composer\Downloader, and add stub types for the remaining Composer downloader hierarchy (file, archive variants, path, perforce, fossil, exceptions, interfaces) so future ports have a home.
Diffstat (limited to 'crates/mozart/src')
-rw-r--r--crates/mozart/src/composer.rs2
-rw-r--r--crates/mozart/src/factory.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/mozart/src/composer.rs b/crates/mozart/src/composer.rs
index 0484344..9fd8b77 100644
--- a/crates/mozart/src/composer.rs
+++ b/crates/mozart/src/composer.rs
@@ -16,8 +16,8 @@ use std::path::{Path, PathBuf};
use crate::factory::create_composer;
use mozart_core::composer::{AutoloadGenerator, InstallationManager, Locker, RepositoryManager};
use mozart_core::config::Config;
+use mozart_core::downloader::DownloadManager;
use mozart_core::package::RootPackageData;
-use mozart_core::repository::download_manager::DownloadManager;
/// Project-level Composer state. Mirrors `Composer\PartialComposer` /
/// `Composer\Composer` in PHP, exposing the subset of getters command
diff --git a/crates/mozart/src/factory.rs b/crates/mozart/src/factory.rs
index 29faa42..b88e088 100644
--- a/crates/mozart/src/factory.rs
+++ b/crates/mozart/src/factory.rs
@@ -15,9 +15,9 @@ use mozart_core::composer::{
Locker, PackageReference, RepositoryManager,
};
use mozart_core::config::resolve_references;
+use mozart_core::downloader::DownloadManager;
use mozart_core::factory::create_config;
use mozart_core::package::{RootPackageData, read_from_file};
-use mozart_core::repository::download_manager::DownloadManager;
/// Rust port of `Factory::createComposer()`.
///