diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-19 21:46:01 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-19 21:46:08 +0900 |
| commit | 5e31fa33c3b5cf726a57a063b8e7a070869250fe (patch) | |
| tree | 98522466966fa7df483cad174ab5fc03db39bc09 /crates/shirabe/src/composer.rs | |
| parent | c839244d8d09f3036ebfee8eef7eb6b147e593ab (diff) | |
| download | php-shirabe-5e31fa33c3b5cf726a57a063b8e7a070869250fe.tar.gz php-shirabe-5e31fa33c3b5cf726a57a063b8e7a070869250fe.tar.zst php-shirabe-5e31fa33c3b5cf726a57a063b8e7a070869250fe.zip | |
fix(compile): fix more random compile errors
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/composer.rs')
| -rw-r--r-- | crates/shirabe/src/composer.rs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/crates/shirabe/src/composer.rs b/crates/shirabe/src/composer.rs index d5a9997..2841d12 100644 --- a/crates/shirabe/src/composer.rs +++ b/crates/shirabe/src/composer.rs @@ -28,6 +28,17 @@ impl Composer { pub const SOURCE_VERSION: &'static str = ""; pub const RUNTIME_API_VERSION: &'static str = "2.2.2"; + pub fn new() -> Self { + Self { + inner: PartialComposer::default(), + locker: None, + download_manager: None, + plugin_manager: None, + autoload_generator: None, + archive_manager: None, + } + } + pub fn get_version() -> String { if Self::VERSION == "@package_version@" { return Self::SOURCE_VERSION.to_string(); @@ -89,10 +100,16 @@ impl Composer { self.inner.get_package() } - pub fn get_config(&self) -> &crate::config::Config { + pub fn get_config(&self) -> &std::rc::Rc<std::cell::RefCell<crate::config::Config>> { self.inner.get_config() } + pub fn get_config_mut( + &mut self, + ) -> &mut std::rc::Rc<std::cell::RefCell<crate::config::Config>> { + self.inner.get_config_mut() + } + pub fn get_repository_manager( &self, ) -> &crate::repository::repository_manager::RepositoryManager { |
