The PRE_AUTOLOAD_DUMP event occurs before the autoload file is generated.
The event listener method receives a Composer\Script\Event instance.
public const PRE_AUTOLOAD_DUMP = 'pre-autoload-dump';