aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--crates/shirabe/src/autoload/autoload_generator.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/crates/shirabe/src/autoload/autoload_generator.rs b/crates/shirabe/src/autoload/autoload_generator.rs
index 835293c4..27a3660e 100644
--- a/crates/shirabe/src/autoload/autoload_generator.rs
+++ b/crates/shirabe/src/autoload/autoload_generator.rs
@@ -1,3 +1,5 @@
+//! `composerRequire()` is ported to `__shirabe_composer_require()` in shirabe-php-rpc, not here.
+//!
//! ref: composer/src/Composer/Autoload/AutoloadGenerator.php
use crate::autoload::ClassLoader;
@@ -2530,13 +2532,6 @@ fn find_top_level_arrow(entry: &str) -> Option<usize> {
None
}
-pub fn composer_require(_file_identifier: &str, _file: &str) {
- // TODO(phase-c): unportable — depends on the $GLOBALS superglobal
- // ($GLOBALS['__composer_autoload_files']) and PHP's `require $file` include
- // mechanism (see also ClassLoader's include closure), neither of which is modeled.
- todo!()
-}
-
// Helper used by parse_autoloads_type for chained string substitutions.
fn str_replace_multi(input: &str, pairs: &[(&str, &str)]) -> String {
let mut s = input.to_string();