aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/autoload/class_map_generator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/autoload/class_map_generator.rs')
-rw-r--r--crates/shirabe/src/autoload/class_map_generator.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/shirabe/src/autoload/class_map_generator.rs b/crates/shirabe/src/autoload/class_map_generator.rs
index da086ad..6aa6492 100644
--- a/crates/shirabe/src/autoload/class_map_generator.rs
+++ b/crates/shirabe/src/autoload/class_map_generator.rs
@@ -6,6 +6,7 @@ use shirabe_class_map_generator::class_map_generator::ClassMapGenerator as Exter
use shirabe_php_shim::PhpMixed;
use crate::io::IOInterface;
+use crate::io::IOInterfaceImmutable;
#[derive(Debug)]
pub struct ClassMapGenerator;
@@ -41,7 +42,7 @@ impl ClassMapGenerator {
pub fn create_map(
path: PhpMixed,
excluded: Option<String>,
- mut io: Option<Box<dyn IOInterface>>,
+ mut io: Option<std::rc::Rc<std::cell::RefCell<dyn IOInterface>>>,
namespace: Option<String>,
autoload_type: Option<String>,
scanned_files: &mut IndexMap<String, bool>,