diff options
Diffstat (limited to 'crates/shirabe/src/installer/project_installer.rs')
| -rw-r--r-- | crates/shirabe/src/installer/project_installer.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/installer/project_installer.rs b/crates/shirabe/src/installer/project_installer.rs index 351fd35..83ffbb2 100644 --- a/crates/shirabe/src/installer/project_installer.rs +++ b/crates/shirabe/src/installer/project_installer.rs @@ -1,6 +1,6 @@ //! ref: composer/src/Composer/Installer/ProjectInstaller.php -use crate::downloader::DownloadManager; +use crate::downloader::DownloadManagerInterface; use crate::installer::InstallerInterface; use crate::package::PackageInterfaceHandle; use crate::repository::InstalledRepositoryInterface; @@ -10,14 +10,14 @@ use shirabe_php_shim::{InvalidArgumentException, PhpMixed}; #[derive(Debug)] pub struct ProjectInstaller { install_path: String, - download_manager: std::rc::Rc<std::cell::RefCell<DownloadManager>>, + download_manager: std::rc::Rc<std::cell::RefCell<dyn DownloadManagerInterface>>, filesystem: std::rc::Rc<std::cell::RefCell<Filesystem>>, } impl ProjectInstaller { pub fn new( install_path: &str, - dm: std::rc::Rc<std::cell::RefCell<DownloadManager>>, + dm: std::rc::Rc<std::cell::RefCell<dyn DownloadManagerInterface>>, fs: std::rc::Rc<std::cell::RefCell<Filesystem>>, ) -> Self { let install_path = format!("{}/", install_path.replace('\\', "/").trim_end_matches('/')); |
