aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/config_helpers.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-09 18:44:31 +0900
committernsfisis <nsfisis@gmail.com>2026-05-09 18:44:31 +0900
commitf9671f2dcde92d5c037595d0d3f01396a8190970 (patch)
tree56e1bfcb8f9940a49bd9e658c982514cdde0c367 /crates/mozart/src/commands/config_helpers.rs
parent0802fd44ed11283f15900d2993fc495acf1bed01 (diff)
downloadphp-mozart-f9671f2dcde92d5c037595d0d3f01396a8190970.tar.gz
php-mozart-f9671f2dcde92d5c037595d0d3f01396a8190970.tar.zst
php-mozart-f9671f2dcde92d5c037595d0d3f01396a8190970.zip
refactor(composer): move Composer and Factory from mozart-core to mozart
Composer needs DownloadManager (from mozart-registry), but mozart-core sits below mozart-registry in the dependency graph — adding the field would create a dependency cycle. Moving Composer and create_composer to the mozart CLI crate breaks the cycle and lets the root state container hold a DownloadManager. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/config_helpers.rs')
-rw-r--r--crates/mozart/src/commands/config_helpers.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/mozart/src/commands/config_helpers.rs b/crates/mozart/src/commands/config_helpers.rs
index fb626f6..32aacdb 100644
--- a/crates/mozart/src/commands/config_helpers.rs
+++ b/crates/mozart/src/commands/config_helpers.rs
@@ -1,8 +1,7 @@
use anyhow::anyhow;
+use mozart_core::composer::composer_home;
use std::path::{Path, PathBuf};
-pub(crate) use mozart_core::composer::composer_home;
-
/// Read TLS-related options (`config.cafile`, `config.capath`) from the merged
/// global + local config. Local values override global. Relative paths are
/// resolved against the directory of the config file that defined them.