Optimizing Composer Autoloading for Production with Classmap-Authoritative Mode
Switch Composer to classmap-authoritative mode to eliminate filesystem scans during class loading in production. This guide covers enabling the setting, regenerating the optimized autoloader, verifying the classmap covers all classes, and rollback steps if dynamic class discovery breaks.