aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/dump_autoload.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-21 16:37:03 +0900
committernsfisis <nsfisis@gmail.com>2026-02-21 16:37:03 +0900
commit3535037592f149477c915a8b66da974eb59586db (patch)
treef476925e9d136d2ddcf206d80355a9a0ca4afda5 /crates/mozart/src/commands/dump_autoload.rs
parentc04744719bd16d9414a9f9a358691d03a993670c (diff)
downloadphp-mozart-3535037592f149477c915a8b66da974eb59586db.tar.gz
php-mozart-3535037592f149477c915a8b66da974eb59586db.tar.zst
php-mozart-3535037592f149477c915a8b66da974eb59586db.zip
feat(autoload): add classmap scanning, optimize, APCu, platform checks, and strict-psr
Add PHP file scanner (php_scanner.rs) with class/interface/trait/enum detection, comment/string/heredoc stripping, and PSR-4/PSR-0 validation. Extend autoload generation with: classmap directory scanning, --optimize mode (PSR-4/PSR-0 to classmap), --classmap-authoritative, --apcu caching with optional prefix, platform_check.php generation, and --strict-psr violation reporting. Wire new options through dump-autoload, install, require, update, and remove commands. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/dump_autoload.rs')
-rw-r--r--crates/mozart/src/commands/dump_autoload.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/mozart/src/commands/dump_autoload.rs b/crates/mozart/src/commands/dump_autoload.rs
index 2c17c55..7d5b748 100644
--- a/crates/mozart/src/commands/dump_autoload.rs
+++ b/crates/mozart/src/commands/dump_autoload.rs
@@ -71,6 +71,12 @@ pub fn execute(args: &DumpAutoloadArgs, cli: &super::Cli) -> anyhow::Result<()>
dev_mode,
suffix,
classmap_authoritative: args.classmap_authoritative,
+ optimize: args.optimize,
+ apcu: args.apcu,
+ apcu_prefix: args.apcu_prefix.clone(),
+ strict_psr: args.strict_psr,
+ platform_check: crate::autoload::PlatformCheckMode::Full,
+ ignore_platform_reqs: args.ignore_platform_reqs,
})?;
eprintln!("Generated autoload files");