How is the app/etc/config.php file generated on a Magento 2 installation?

Context: How is the app/etc/config.php file generated by the \Magento\Framework\Module\Status::setIsEnabled()?


See also: