[ticket/12051] Optimise Composer Autoloader on Build

https://tracker.phpbb.com/browse/PHPBB3-12051

PHPBB3-12051