From 3535037592f149477c915a8b66da974eb59586db Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 21 Feb 2026 16:37:03 +0900 Subject: 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 --- crates/mozart/src/commands/require.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/mozart/src/commands/require.rs') diff --git a/crates/mozart/src/commands/require.rs b/crates/mozart/src/commands/require.rs index b1062f0..128e4a9 100644 --- a/crates/mozart/src/commands/require.rs +++ b/crates/mozart/src/commands/require.rs @@ -778,6 +778,8 @@ pub fn execute(args: &RequireArgs, cli: &super::Cli) -> anyhow::Result<()> { ignore_platform_req: args.ignore_platform_req.clone(), optimize_autoloader: args.optimize_autoloader, classmap_authoritative: args.classmap_authoritative, + apcu_autoloader: false, + apcu_autoloader_prefix: None, }, )?; } -- cgit v1.3.1