aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/event_dispatcher
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/event_dispatcher')
-rw-r--r--crates/shirabe/src/event_dispatcher/event_dispatcher.rs17
1 files changed, 1 insertions, 16 deletions
diff --git a/crates/shirabe/src/event_dispatcher/event_dispatcher.rs b/crates/shirabe/src/event_dispatcher/event_dispatcher.rs
index 8f0b54be..1a03ad70 100644
--- a/crates/shirabe/src/event_dispatcher/event_dispatcher.rs
+++ b/crates/shirabe/src/event_dispatcher/event_dispatcher.rs
@@ -1581,23 +1581,8 @@ try {{
Self::ensure_composer_php_runtime()
}
- /// The `vendor/autoload.php` of the Composer PHP runtime: the checkout `SHIRABE_COMPOSER_PHP_DIR`
- /// points at, or else the runtime bundle the executable carries.
+ /// The `vendor/autoload.php` of the Composer PHP runtime.
fn composer_php_runtime_autoload() -> anyhow::Result<String> {
- if let Some(dir) = Platform::get_env("SHIRABE_COMPOSER_PHP_DIR") {
- let path = std::path::Path::new(&dir)
- .join("vendor")
- .join("autoload.php");
- if !path.is_file() {
- return Err(RuntimeException::new(format!(
- "SHIRABE_COMPOSER_PHP_DIR points at {dir}, which has no \
- vendor/autoload.php; install the checkout's dependencies or unset it to use \
- the runtime the executable carries"
- ))
- .into());
- }
- return Ok(path.display().to_string());
- }
Ok(format!(
"{}/vendor/autoload.php",
shirabe_php_rpc::composer_runtime::base_path()?