aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/plugin')
-rw-r--r--crates/shirabe/src/plugin/plugin_manager.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/shirabe/src/plugin/plugin_manager.rs b/crates/shirabe/src/plugin/plugin_manager.rs
index 1d8e6192..75852348 100644
--- a/crates/shirabe/src/plugin/plugin_manager.rs
+++ b/crates/shirabe/src/plugin/plugin_manager.rs
@@ -405,7 +405,12 @@ impl PluginManager {
// The plugin code runs in the PHP worker: load the Composer PHP runtime (contracts like
// PluginInterface) and the reverse-RPC autoloader before touching plugin classes there.
- EventDispatcher::ensure_composer_php_runtime()?;
+ let cache_dir = composer
+ .borrow()
+ .get_config()
+ .borrow()
+ .get_str("cache-dir")?;
+ EventDispatcher::ensure_composer_php_runtime(std::path::Path::new(&cache_dir))?;
EventDispatcher::ensure_script_autoloader()?;
if let Some(files) = map.get("files").and_then(|v| v.as_array()) {